home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-06-11 | 31.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 7c f5 03 63 6c 61 73 73 |........||..class|
|00000010| 20 4f 4e 53 50 6f 77 65 | 72 43 6f 72 65 20 65 78 | ONSPowe|rCore ex|
|00000020| 74 65 6e 64 73 20 44 65 | 73 74 72 6f 79 61 62 6c |tends De|stroyabl|
|00000030| 65 4f 62 6a 65 63 74 69 | 76 65 0d 0a 09 68 69 64 |eObjecti|ve...hid|
|00000040| 65 63 61 74 65 67 6f 72 | 69 65 73 28 44 65 73 74 |ecategor|ies(Dest|
|00000050| 72 6f 79 61 62 6c 65 4f | 62 6a 65 63 74 69 76 65 |royableO|bjective|
|00000060| 29 0d 0a 09 61 62 73 74 | 72 61 63 74 3b 0d 0a 0d |)...abst|ract;...|
|00000070| 0a 23 65 78 65 63 20 4f | 42 4a 20 4c 4f 41 44 20 |.#exec O|BJ LOAD |
|00000080| 46 49 4c 45 3d 22 2e 2e | 5c 53 74 61 74 69 63 4d |FILE="..|\StaticM|
|00000090| 65 73 68 65 73 5c 56 4d | 53 74 72 75 63 74 75 72 |eshes\VM|Structur|
|000000a0| 65 73 2e 75 73 78 22 0d | 0a 23 65 78 65 63 20 4f |es.usx".|.#exec O|
|000000b0| 42 4a 20 4c 4f 41 44 20 | 46 49 4c 45 3d 22 2e 2e |BJ LOAD |FILE="..|
|000000c0| 5c 54 65 78 74 75 72 65 | 73 5c 4f 4e 53 73 74 72 |\Texture|s\ONSstr|
|000000d0| 75 63 74 75 72 65 54 65 | 78 74 75 72 65 73 2e 75 |uctureTe|xtures.u|
|000000e0| 74 78 22 0d 0a 0d 0a 0d | 0a 76 61 72 28 45 76 65 |tx".....|.var(Eve|
|000000f0| 6e 74 73 29 20 6e 61 6d | 65 20 20 20 20 20 20 20 |nts) nam|e |
|00000100| 20 20 20 20 20 52 65 64 | 41 63 74 69 76 61 74 69 | Red|Activati|
|00000110| 6f 6e 45 76 65 6e 74 4e | 61 6d 65 3b 0d 0a 76 61 |onEventN|ame;..va|
|00000120| 72 28 45 76 65 6e 74 73 | 29 20 6e 61 6d 65 20 20 |r(Events|) name |
|00000130| 20 20 20 20 20 20 20 20 | 20 20 42 6c 75 65 41 63 | | BlueAc|
|00000140| 74 69 76 61 74 69 6f 6e | 45 76 65 6e 74 4e 61 6d |tivation|EventNam|
|00000150| 65 3b 0d 0a 76 61 72 28 | 45 76 65 6e 74 73 29 20 |e;..var(|Events) |
|00000160| 6e 61 6d 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |name | |
|00000170| 44 65 73 74 72 6f 79 65 | 64 45 76 65 6e 74 4e 61 |Destroye|dEventNa|
|00000180| 6d 65 3b 0d 0a 0d 0a 76 | 61 72 28 29 20 20 20 66 |me;....v|ar() f|
|00000190| 6c 6f 61 74 20 20 20 20 | 20 20 20 20 20 20 20 20 |loat | |
|000001a0| 20 20 20 43 6f 6e 73 74 | 72 75 63 74 69 6f 6e 54 | Const|ructionT|
|000001b0| 69 6d 65 3b 0d 0a 76 61 | 72 28 29 20 20 20 53 74 |ime;..va|r() St|
|000001c0| 61 74 69 63 4d 65 73 68 | 20 20 20 20 20 20 20 20 |aticMesh| |
|000001d0| 20 20 44 65 61 64 53 74 | 61 74 69 63 4d 65 73 68 | DeadSt|aticMesh|
|000001e0| 3b 0d 0a 76 61 72 28 29 | 20 20 20 73 6f 75 6e 64 |;..var()| sound|
|000001f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 44 | | D|
|00000200| 65 73 74 72 6f 79 65 64 | 53 6f 75 6e 64 3b 0d 0a |estroyed|Sound;..|
|00000210| 76 61 72 28 29 09 73 6f | 75 6e 64 09 09 09 09 43 |var().so|und....C|
|00000220| 6f 6e 73 74 72 75 63 74 | 65 64 53 6f 75 6e 64 3b |onstruct|edSound;|
|00000230| 0d 0a 76 61 72 28 29 09 | 73 6f 75 6e 64 09 09 09 |..var().|sound...|
|00000240| 09 53 74 61 72 74 43 6f | 6e 73 74 72 75 63 74 69 |.StartCo|nstructi|
|00000250| 6f 6e 53 6f 75 6e 64 3b | 0d 0a 76 61 72 28 29 20 |onSound;|..var() |
|00000260| 20 20 73 6f 75 6e 64 20 | 20 20 20 20 20 20 20 20 | sound | |
|00000270| 20 20 20 20 20 20 41 63 | 74 69 76 65 53 6f 75 6e | Ac|tiveSoun|
|00000280| 64 3b 0d 0a 76 61 72 28 | 29 20 20 20 73 6f 75 6e |d;..var(|) soun|
|00000290| 64 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d | |
|000002a0| 4e 65 75 74 72 61 6c 53 | 6f 75 6e 64 3b 0d 0a 76 |NeutralS|ound;..v|
|000002b0| 61 72 28 29 20 20 20 73 | 6f 75 6e 64 20 20 20 20 |ar() s|ound |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 20 48 65 61 6c 69 | | Heali|
|000002d0| 6e 67 53 6f 75 6e 64 3b | 0d 0a 76 61 72 28 29 20 |ngSound;|..var() |
|000002e0| 20 20 73 6f 75 6e 64 20 | 20 20 20 20 20 20 20 20 | sound | |
|000002f0| 20 20 20 20 20 20 48 65 | 61 6c 65 64 53 6f 75 6e | He|aledSoun|
|00000300| 64 3b 0d 0a 76 61 72 28 | 29 20 20 20 62 6f 6f 6c |d;..var(|) bool|
|00000310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000320| 62 53 74 61 72 74 4e 65 | 75 74 72 61 6c 3b 0d 0a |bStartNe|utral;..|
|00000330| 76 61 72 28 29 20 20 20 | 62 6f 6f 6c 20 20 20 20 |var() |bool |
|00000340| 20 20 20 20 20 20 20 20 | 20 20 20 20 62 50 6f 77 | | bPow|
|00000350| 65 72 65 64 3b 0d 0a 76 | 61 72 28 29 20 20 20 62 |ered;..v|ar() b|
|00000360| 6f 6f 6c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ool | |
|00000370| 20 20 20 62 46 69 6e 61 | 6c 43 6f 72 65 3b 0d 0a | bFina|lCore;..|
|00000380| 0d 0a 76 61 72 20 20 20 | 20 20 62 6f 6f 6c 20 20 |..var | bool |
|00000390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 50 | | bP|
|000003a0| 6f 77 65 72 65 64 42 79 | 52 65 64 3b 0d 0a 76 61 |oweredBy|Red;..va|
|000003b0| 72 20 20 20 20 20 62 6f | 6f 6c 20 20 20 20 20 20 |r bo|ol |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 62 50 6f 77 65 72 | | bPower|
|000003d0| 65 64 42 79 42 6c 75 65 | 3b 0d 0a 76 61 72 20 20 |edByBlue|;..var |
|000003e0| 20 20 20 62 6f 6f 6c 20 | 20 20 20 20 20 20 20 20 | bool | |
|000003f0| 20 20 20 20 20 20 20 62 | 53 65 76 65 72 65 64 3b | b|Severed;|
|00000400| 0d 0a 76 61 72 20 20 20 | 20 20 62 6f 6f 6c 20 20 |..var | bool |
|00000410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 55 | | bU|
|00000420| 6e 64 65 72 41 74 74 61 | 63 6b 3b 0d 0a 76 61 72 |nderAtta|ck;..var|
|00000430| 20 20 20 20 20 62 6f 6f | 6c 20 20 20 20 20 20 20 | boo|l |
|00000440| 20 20 20 20 20 20 20 20 | 20 62 4f 6c 64 55 6e 64 | | bOldUnd|
|00000450| 65 72 41 74 74 61 63 6b | 3b 0d 0a 0d 0a 76 61 72 |erAttack|;....var|
|00000460| 20 20 20 20 20 67 6c 6f | 62 61 6c 63 6f 6e 66 69 | glo|balconfi|
|00000470| 67 20 20 62 6f 6f 6c 20 | 20 20 20 20 20 20 20 62 |g bool | b|
|00000480| 53 68 6f 77 4e 6f 64 65 | 42 65 61 6d 73 3b 0d 0a |ShowNode|Beams;..|
|00000490| 0d 0a 76 61 72 20 61 72 | 72 61 79 3c 6e 61 6d 65 |..var ar|ray<name|
|000004a0| 3e 20 4c 69 6e 6b 65 64 | 4e 6f 64 65 73 3b 0d 0a |> Linked|Nodes;..|
|000004b0| 76 61 72 20 61 72 72 61 | 79 3c 4f 4e 53 50 6f 77 |var arra|y<ONSPow|
|000004c0| 65 72 43 6f 72 65 3e 20 | 50 6f 77 65 72 4c 69 6e |erCore> |PowerLin|
|000004d0| 6b 73 3b 0d 0a 0d 0a 2f | 2f 20 49 6e 74 65 72 6e |ks;..../|/ Intern|
|000004e0| 61 6c 0d 0a 76 61 72 20 | 61 72 72 61 79 3c 4d 61 |al..var |array<Ma|
|000004f0| 74 65 72 69 61 6c 3e 20 | 52 65 64 43 6f 6e 73 74 |terial> |RedConst|
|00000500| 72 75 63 74 69 6e 67 53 | 6b 69 6e 73 3b 0d 0a 76 |ructingS|kins;..v|
|00000510| 61 72 20 61 72 72 61 79 | 3c 4d 61 74 65 72 69 61 |ar array|<Materia|
|00000520| 6c 3e 20 42 6c 75 65 43 | 6f 6e 73 74 72 75 63 74 |l> BlueC|onstruct|
|00000530| 69 6e 67 53 6b 69 6e 73 | 3b 0d 0a 76 61 72 20 61 |ingSkins|;..var a|
|00000540| 72 72 61 79 3c 4d 61 74 | 65 72 69 61 6c 3e 20 52 |rray<Mat|erial> R|
|00000550| 65 64 41 63 74 69 76 65 | 53 6b 69 6e 73 3b 0d 0a |edActive|Skins;..|
|00000560| 76 61 72 20 61 72 72 61 | 79 3c 4d 61 74 65 72 69 |var arra|y<Materi|
|00000570| 61 6c 3e 20 42 6c 75 65 | 41 63 74 69 76 65 53 6b |al> Blue|ActiveSk|
|00000580| 69 6e 73 3b 0d 0a 76 61 | 72 20 62 79 74 65 20 20 |ins;..va|r byte |
|00000590| 20 20 20 20 20 20 20 20 | 20 20 43 6f 72 65 53 74 | | CoreSt|
|000005a0| 61 67 65 3b 0d 0a 76 61 | 72 20 62 79 74 65 20 20 |age;..va|r byte |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 4c 61 73 74 43 6f | | LastCo|
|000005c0| 72 65 53 74 61 67 65 3b | 0d 0a 76 61 72 20 62 79 |reStage;|..var by|
|000005d0| 74 65 20 20 20 20 20 20 | 20 20 20 20 20 20 46 69 |te | Fi|
|000005e0| 6e 61 6c 43 6f 72 65 44 | 69 73 74 61 6e 63 65 5b |nalCoreD|istance[|
|000005f0| 32 5d 3b 0d 0a 76 61 72 | 20 66 6c 6f 61 74 20 20 |2];..var| float |
|00000600| 20 20 20 20 20 20 20 20 | 20 43 6f 6e 73 74 72 75 | | Constru|
|00000610| 63 74 69 6f 6e 54 69 6d | 65 45 6c 61 70 73 65 64 |ctionTim|eElapsed|
|00000620| 3b 0d 0a 76 61 72 20 66 | 6c 6f 61 74 20 20 20 20 |;..var f|loat |
|00000630| 20 20 20 20 20 20 20 4c | 61 73 74 41 74 74 61 63 | L|astAttac|
|00000640| 6b 54 69 6d 65 3b 0d 0a | 76 61 72 20 66 6c 6f 61 |kTime;..|var floa|
|00000650| 74 20 20 20 20 20 20 20 | 20 20 20 20 4c 61 73 74 |t | Last|
|00000660| 41 74 74 61 63 6b 45 78 | 70 69 72 61 74 69 6f 6e |AttackEx|piration|
|00000670| 54 69 6d 65 3b 0d 0a 76 | 61 72 20 66 6c 6f 61 74 |Time;..v|ar float|
|00000680| 20 20 20 20 20 20 20 20 | 20 20 20 4c 61 73 74 41 | | LastA|
|00000690| 74 74 61 63 6b 41 6e 6e | 6f 75 6e 63 65 6d 65 6e |ttackAnn|ouncemen|
|000006a0| 74 54 69 6d 65 3b 0d 0a | 76 61 72 20 66 6c 6f 61 |tTime;..|var floa|
|000006b0| 74 20 20 20 20 20 20 20 | 20 20 20 20 4c 61 73 74 |t | Last|
|000006c0| 41 74 74 61 63 6b 4d 65 | 73 73 61 67 65 54 69 6d |AttackMe|ssageTim|
|000006d0| 65 3b 0d 0a 76 61 72 20 | 66 6c 6f 61 74 20 20 20 |e;..var |float |
|000006e0| 20 20 20 20 20 20 20 20 | 53 65 76 65 72 65 64 44 | |SeveredD|
|000006f0| 61 6d 61 67 65 50 65 72 | 53 65 63 6f 6e 64 3b 0d |amagePer|Second;.|
|00000700| 0a 76 61 72 20 66 6c 6f | 61 74 20 20 20 20 20 20 |.var flo|at |
|00000710| 20 20 20 20 20 48 65 61 | 6c 69 6e 67 54 69 6d 65 | Hea|lingTime|
|00000720| 3b 0d 0a 76 61 72 20 61 | 72 72 61 79 3c 41 63 74 |;..var a|rray<Act|
|00000730| 6f 72 3e 20 20 20 20 43 | 6c 6f 73 65 41 63 74 6f |or> C|loseActo|
|00000740| 72 73 3b 0d 0a 76 61 72 | 20 61 72 72 61 79 3c 4f |rs;..var| array<O|
|00000750| 4e 53 54 65 6c 65 70 6f | 72 74 50 61 64 3e 20 54 |NSTelepo|rtPad> T|
|00000760| 65 6c 65 70 6f 72 74 50 | 61 64 73 3b 0d 0a 76 61 |eleportP|ads;..va|
|00000770| 72 20 54 72 69 67 67 65 | 72 73 20 54 65 6c 65 70 |r Trigge|rs Telep|
|00000780| 6f 72 74 54 72 69 67 67 | 65 72 3b 0d 0a 76 61 72 |ortTrigg|er;..var|
|00000790| 20 69 6e 74 20 44 65 73 | 74 72 75 63 74 69 6f 6e | int Des|truction|
|000007a0| 4d 65 73 73 61 67 65 49 | 6e 64 65 78 3b 20 2f 2f |MessageI|ndex; //|
|000007b0| 62 61 73 65 20 73 77 69 | 74 63 68 20 66 6f 72 20 |base swi|tch for |
|000007c0| 4f 4e 53 4f 6e 73 6c 61 | 75 67 68 74 4d 65 73 73 |ONSOnsla|ughtMess|
|000007d0| 61 67 65 0d 0a 76 61 72 | 20 73 74 72 69 6e 67 20 |age..var| string |
|000007e0| 44 65 73 74 72 6f 79 65 | 64 45 76 65 6e 74 5b 34 |Destroye|dEvent[4|
|000007f0| 5d 3b 0d 0a 76 61 72 20 | 73 74 72 69 6e 67 20 43 |];..var |string C|
|00000800| 6f 6e 73 74 72 75 63 74 | 65 64 45 76 65 6e 74 5b |onstruct|edEvent[|
|00000810| 32 5d 3b 0d 0a 76 61 72 | 20 43 6f 6e 74 72 6f 6c |2];..var| Control|
|00000820| 6c 65 72 20 43 6f 6e 73 | 74 72 75 63 74 6f 72 3b |ler Cons|tructor;|
|00000830| 20 2f 2f 70 6c 61 79 65 | 72 20 77 68 6f 20 74 6f | //playe|r who to|
|00000840| 75 63 68 65 64 20 6d 65 | 20 74 6f 20 73 74 61 72 |uched me| to star|
|00000850| 74 20 63 6f 6e 73 74 72 | 75 63 74 69 6f 6e 0d 0a |t constr|uction..|
|00000860| 76 61 72 20 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 4c |var Cont|roller L|
|00000870| 61 73 74 48 65 61 6c 65 | 64 42 79 3b 0d 0a 76 61 |astHeale|dBy;..va|
|00000880| 72 20 4f 4e 53 4e 6f 64 | 65 48 65 61 6c 45 66 66 |r ONSNod|eHealEff|
|00000890| 65 63 74 20 4e 6f 64 65 | 48 65 61 6c 45 66 66 65 |ect Node|HealEffe|
|000008a0| 63 74 3b 0d 0a 76 61 72 | 20 45 6d 69 74 74 65 72 |ct;..var| Emitter|
|000008b0| 20 4e 6f 64 65 42 65 61 | 6d 45 66 66 65 63 74 3b | NodeBea|mEffect;|
|000008c0| 0d 0a 76 61 72 20 45 6d | 69 74 74 65 72 20 45 78 |..var Em|itter Ex|
|000008d0| 70 6c 6f 73 69 6f 6e 45 | 66 66 65 63 74 3b 0d 0a |plosionE|ffect;..|
|000008e0| 0d 0a 76 61 72 20 4f 4e | 53 46 72 65 65 52 6f 61 |..var ON|SFreeRoa|
|000008f0| 6d 69 6e 67 45 6e 65 72 | 67 79 45 66 66 65 63 74 |mingEner|gyEffect|
|00000900| 20 20 52 6f 61 6d 69 6e | 67 45 6e 65 72 67 79 3b | Roamin|gEnergy;|
|00000910| 0d 0a 76 61 72 20 4f 4e | 53 50 6f 77 65 72 43 6f |..var ON|SPowerCo|
|00000920| 72 65 53 68 69 65 6c 64 | 20 20 20 20 20 20 20 20 |reShield| |
|00000930| 20 20 53 68 69 65 6c 64 | 3b 0d 0a 76 61 72 20 63 | Shield|;..var c|
|00000940| 6c 61 73 73 3c 4f 4e 53 | 50 6f 77 65 72 43 6f 72 |lass<ONS|PowerCor|
|00000950| 65 53 68 69 65 6c 64 3e | 20 20 20 53 68 69 65 6c |eShield>| Shiel|
|00000960| 64 43 6c 61 73 73 3b 0d | 0a 76 61 72 20 76 65 63 |dClass;.|.var vec|
|00000970| 74 6f 72 09 09 09 53 68 | 69 65 6c 64 4f 66 66 73 |tor...Sh|ieldOffs|
|00000980| 65 74 3b 0d 0a 0d 0a 76 | 61 72 20 50 6c 61 79 65 |et;....v|ar Playe|
|00000990| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000009a0| 20 4c 61 73 74 44 61 6d | 61 67 65 64 42 79 3b 0d | LastDam|agedBy;.|
|000009b0| 0a 76 61 72 20 4f 4e 53 | 50 6f 77 65 72 43 6f 72 |.var ONS|PowerCor|
|000009c0| 65 20 4e 65 78 74 43 6f | 72 65 3b 09 2f 2f 20 6c |e NextCo|re;.// l|
|000009d0| 69 6e 6b 20 69 74 20 3a | 50 20 20 2d 2d 20 72 6a |ink it :|P -- rj|
|000009e0| 70 0d 0a 0d 0a 76 61 72 | 20 62 79 74 65 20 4c 61 |p....var| byte La|
|000009f0| 73 74 44 65 66 65 6e 64 | 65 72 54 65 61 6d 49 6e |stDefend|erTeamIn|
|00000a00| 64 65 78 3b 0d 0a 76 61 | 72 28 48 55 44 29 20 76 |dex;..va|r(HUD) v|
|00000a10| 65 63 74 6f 72 20 48 55 | 44 4c 6f 63 61 74 69 6f |ector HU|DLocatio|
|00000a20| 6e 3b 0d 0a 76 61 72 20 | 69 6e 74 20 4e 6f 64 65 |n;..var |int Node|
|00000a30| 4e 75 6d 3b 0d 0a 0d 0a | 72 65 70 6c 69 63 61 74 |Num;....|replicat|
|00000a40| 69 6f 6e 0d 0a 7b 0d 0a | 09 72 65 6c 69 61 62 6c |ion..{..|.reliabl|
|00000a50| 65 20 69 66 20 28 62 4e | 65 74 44 69 72 74 79 20 |e if (bN|etDirty |
|00000a60| 26 26 20 52 6f 6c 65 20 | 3d 3d 20 52 4f 4c 45 5f |&& Role |== ROLE_|
|00000a70| 41 75 74 68 6f 72 69 74 | 79 29 0d 0a 09 09 43 6f |Authorit|y)....Co|
|00000a80| 72 65 53 74 61 67 65 2c | 20 62 55 6e 64 65 72 41 |reStage,| bUnderA|
|00000a90| 74 74 61 63 6b 2c 20 62 | 50 6f 77 65 72 65 64 42 |ttack, b|PoweredB|
|00000aa0| 79 52 65 64 2c 20 62 50 | 6f 77 65 72 65 64 42 79 |yRed, bP|oweredBy|
|00000ab0| 42 6c 75 65 2c 20 62 53 | 65 76 65 72 65 64 3b 0d |Blue, bS|evered;.|
|00000ac0| 0a 7d 0d 0a 0d 0a 64 65 | 6c 65 67 61 74 65 20 55 |.}....de|legate U|
|00000ad0| 70 64 61 74 65 4c 69 6e | 6b 53 74 61 74 65 28 4f |pdateLin|kState(O|
|00000ae0| 4e 53 50 6f 77 65 72 43 | 6f 72 65 20 4e 6f 64 65 |NSPowerC|ore Node|
|00000af0| 29 3b 0d 0a 64 65 6c 65 | 67 61 74 65 20 4e 6f 74 |);..dele|gate Not|
|00000b00| 69 66 79 55 70 64 61 74 | 65 4c 69 6e 6b 73 28 29 |ifyUpdat|eLinks()|
|00000b10| 3b 0d 0a 64 65 6c 65 67 | 61 74 65 20 4f 6e 43 6f |;..deleg|ate OnCo|
|00000b20| 72 65 44 65 73 74 72 6f | 79 65 64 28 20 62 79 74 |reDestro|yed( byt|
|00000b30| 65 20 44 65 73 74 72 6f | 79 65 64 43 6f 72 65 49 |e Destro|yedCoreI|
|00000b40| 6e 64 65 78 20 29 3b 0d | 0a 0d 0a 73 69 6d 75 6c |ndex );.|...simul|
|00000b50| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 55 70 |ated fun|ction Up|
|00000b60| 64 61 74 65 50 72 65 63 | 61 63 68 65 4d 61 74 65 |datePrec|acheMate|
|00000b70| 72 69 61 6c 73 28 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |rials().|.{...loc|
|00000b80| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 0d 0a 09 66 6f |al int i|;.....fo|
|00000b90| 72 20 28 20 69 3d 30 3b | 20 69 3c 52 65 64 43 6f |r ( i=0;| i<RedCo|
|00000ba0| 6e 73 74 72 75 63 74 69 | 6e 67 53 6b 69 6e 73 2e |nstructi|ngSkins.|
|00000bb0| 4c 65 6e 67 74 68 3b 20 | 69 2b 2b 20 29 0d 0a 09 |Length; |i++ )...|
|00000bc0| 09 4c 65 76 65 6c 2e 41 | 64 64 50 72 65 63 61 63 |.Level.A|ddPrecac|
|00000bd0| 68 65 4d 61 74 65 72 69 | 61 6c 28 52 65 64 43 6f |heMateri|al(RedCo|
|00000be0| 6e 73 74 72 75 63 74 69 | 6e 67 53 6b 69 6e 73 5b |nstructi|ngSkins[|
|00000bf0| 69 5d 29 3b 0d 0a 0d 0a | 09 66 6f 72 20 28 20 69 |i]);....|.for ( i|
|00000c00| 3d 30 3b 20 69 3c 42 6c | 75 65 43 6f 6e 73 74 72 |=0; i<Bl|ueConstr|
|00000c10| 75 63 74 69 6e 67 53 6b | 69 6e 73 2e 4c 65 6e 67 |uctingSk|ins.Leng|
|00000c20| 74 68 3b 20 69 2b 2b 20 | 29 0d 0a 09 09 4c 65 76 |th; i++ |)....Lev|
|00000c30| 65 6c 2e 41 64 64 50 72 | 65 63 61 63 68 65 4d 61 |el.AddPr|ecacheMa|
|00000c40| 74 65 72 69 61 6c 28 42 | 6c 75 65 43 6f 6e 73 74 |terial(B|lueConst|
|00000c50| 72 75 63 74 69 6e 67 53 | 6b 69 6e 73 5b 69 5d 29 |ructingS|kins[i])|
|00000c60| 3b 0d 0a 0d 0a 09 66 6f | 72 20 28 20 69 3d 30 3b |;.....fo|r ( i=0;|
|00000c70| 20 69 3c 52 65 64 41 63 | 74 69 76 65 53 6b 69 6e | i<RedAc|tiveSkin|
|00000c80| 73 2e 4c 65 6e 67 74 68 | 3b 20 69 2b 2b 20 29 0d |s.Length|; i++ ).|
|00000c90| 0a 09 09 4c 65 76 65 6c | 2e 41 64 64 50 72 65 63 |...Level|.AddPrec|
|00000ca0| 61 63 68 65 4d 61 74 65 | 72 69 61 6c 28 52 65 64 |acheMate|rial(Red|
|00000cb0| 41 63 74 69 76 65 53 6b | 69 6e 73 5b 69 5d 29 3b |ActiveSk|ins[i]);|
|00000cc0| 0d 0a 0d 0a 09 66 6f 72 | 20 28 20 69 3d 30 3b 20 |.....for| ( i=0; |
|00000cd0| 69 3c 42 6c 75 65 41 63 | 74 69 76 65 53 6b 69 6e |i<BlueAc|tiveSkin|
|00000ce0| 73 2e 4c 65 6e 67 74 68 | 3b 20 69 2b 2b 20 29 0d |s.Length|; i++ ).|
|00000cf0| 0a 09 09 4c 65 76 65 6c | 2e 41 64 64 50 72 65 63 |...Level|.AddPrec|
|00000d00| 61 63 68 65 4d 61 74 65 | 72 69 61 6c 28 42 6c 75 |acheMate|rial(Blu|
|00000d10| 65 41 63 74 69 76 65 53 | 6b 69 6e 73 5b 69 5d 29 |eActiveS|kins[i])|
|00000d20| 3b 0d 0a 0d 0a 09 4c 65 | 76 65 6c 2e 41 64 64 50 |;.....Le|vel.AddP|
|00000d30| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|00000d40| 4d 61 74 65 72 69 61 6c | 27 41 57 2d 32 30 30 34 |Material|'AW-2004|
|00000d50| 50 61 72 74 69 63 6c 65 | 73 2e 45 6e 65 72 67 79 |Particle|s.Energy|
|00000d60| 2e 41 69 72 42 6c 61 73 | 74 27 29 3b 0d 0a 09 4c |.AirBlas|t');...L|
|00000d70| 65 76 65 6c 2e 41 64 64 | 50 72 65 63 61 63 68 65 |evel.Add|Precache|
|00000d80| 4d 61 74 65 72 69 61 6c | 28 4d 61 74 65 72 69 61 |Material|(Materia|
|00000d90| 6c 27 41 57 2d 32 30 30 | 34 50 61 72 74 69 63 6c |l'AW-200|4Particl|
|00000da0| 65 73 2e 45 6e 65 72 67 | 79 2e 50 6f 77 65 72 42 |es.Energ|y.PowerB|
|00000db0| 65 61 6d 27 29 3b 0d 0a | 09 4c 65 76 65 6c 2e 41 |eam');..|.Level.A|
|00000dc0| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00000dd0| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 4f 4e 53 73 |al(Mater|ial'ONSs|
|00000de0| 74 72 75 63 74 75 72 65 | 54 65 78 74 75 72 65 73 |tructure|Textures|
|00000df0| 2e 43 6f 72 65 42 72 65 | 61 63 68 47 72 6f 75 70 |.CoreBre|achGroup|
|00000e00| 2e 65 78 70 37 5f 66 72 | 61 6d 65 73 42 4c 55 45 |.exp7_fr|amesBLUE|
|00000e10| 27 29 3b 0d 0a 09 4c 65 | 76 65 6c 2e 41 64 64 50 |');...Le|vel.AddP|
|00000e20| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|00000e30| 4d 61 74 65 72 69 61 6c | 27 4f 4e 53 73 74 72 75 |Material|'ONSstru|
|00000e40| 63 74 75 72 65 54 65 78 | 74 75 72 65 73 2e 43 6f |ctureTex|tures.Co|
|00000e50| 72 65 42 72 65 61 63 68 | 47 72 6f 75 70 2e 63 6f |reBreach|Group.co|
|00000e60| 72 65 42 72 65 61 63 68 | 41 43 43 52 45 54 49 4f |reBreach|ACCRETIO|
|00000e70| 4e 62 6c 75 65 27 29 3b | 0d 0a 09 4c 65 76 65 6c |Nblue');|...Level|
|00000e80| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00000e90| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 4f 4e |rial(Mat|erial'ON|
|00000ea0| 53 73 74 72 75 63 74 75 | 72 65 54 65 78 74 75 72 |Sstructu|reTextur|
|00000eb0| 65 73 2e 43 6f 72 65 42 | 72 65 61 63 68 47 72 6f |es.CoreB|reachGro|
|00000ec0| 75 70 2e 43 6f 72 65 42 | 72 65 61 63 68 53 68 6f |up.CoreB|reachSho|
|00000ed0| 63 6b 52 69 6e 67 54 52 | 41 4e 53 27 29 3b 0d 0a |ckRingTR|ANS');..|
|00000ee0| 09 4c 65 76 65 6c 2e 41 | 64 64 50 72 65 63 61 63 |.Level.A|ddPrecac|
|00000ef0| 68 65 4d 61 74 65 72 69 | 61 6c 28 4d 61 74 65 72 |heMateri|al(Mater|
|00000f00| 69 61 6c 27 4f 4e 53 73 | 74 72 75 63 74 75 72 65 |ial'ONSs|tructure|
|00000f10| 54 65 78 74 75 72 65 73 | 2e 43 6f 72 65 42 72 65 |Textures|.CoreBre|
|00000f20| 61 63 68 47 72 6f 75 70 | 2e 43 6f 72 65 42 72 65 |achGroup|.CoreBre|
|00000f30| 61 63 68 53 68 6f 63 6b | 52 49 4e 47 65 64 67 65 |achShock|RINGedge|
|00000f40| 27 29 3b 0d 0a 09 4c 65 | 76 65 6c 2e 41 64 64 50 |');...Le|vel.AddP|
|00000f50| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|00000f60| 4d 61 74 65 72 69 61 6c | 27 56 4d 50 61 72 74 69 |Material|'VMParti|
|00000f70| 63 6c 65 54 65 78 74 75 | 72 65 73 2e 50 6f 77 65 |cleTextu|res.Powe|
|00000f80| 72 4e 6f 64 65 45 58 50 | 2e 70 6f 77 65 72 4e 6f |rNodeEXP|.powerNo|
|00000f90| 64 65 45 58 50 62 6c 75 | 65 54 45 58 27 29 3b 0d |deEXPblu|eTEX');.|
|00000fa0| 0a 09 4c 65 76 65 6c 2e | 41 64 64 50 72 65 63 61 |..Level.|AddPreca|
|00000fb0| 63 68 65 4d 61 74 65 72 | 69 61 6c 28 4d 61 74 65 |cheMater|ial(Mate|
|00000fc0| 72 69 61 6c 27 4f 4e 53 | 73 74 72 75 63 74 75 72 |rial'ONS|structur|
|00000fd0| 65 54 65 78 74 75 72 65 | 73 2e 43 6f 72 65 42 72 |eTexture|s.CoreBr|
|00000fe0| 65 61 63 68 47 72 6f 75 | 70 2e 63 6f 72 65 42 72 |eachGrou|p.coreBr|
|00000ff0| 65 61 63 68 41 43 43 52 | 45 54 49 4f 4e 72 65 64 |eachACCR|ETIONred|
|00001000| 27 29 3b 0d 0a 09 4c 65 | 76 65 6c 2e 41 64 64 50 |');...Le|vel.AddP|
|00001010| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|00001020| 4d 61 74 65 72 69 61 6c | 27 56 4d 50 61 72 74 69 |Material|'VMParti|
|00001030| 63 6c 65 54 65 78 74 75 | 72 65 73 2e 50 6f 77 65 |cleTextu|res.Powe|
|00001040| 72 4e 6f 64 65 45 58 50 | 2e 70 6f 77 65 72 4e 6f |rNodeEXP|.powerNo|
|00001050| 64 65 45 58 50 72 65 64 | 54 45 58 27 29 3b 0d 0a |deEXPred|TEX');..|
|00001060| 0d 0a 20 20 20 20 53 75 | 70 65 72 2e 55 70 64 61 |.. Su|per.Upda|
|00001070| 74 65 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |tePrecac|heMateri|
|00001080| 61 6c 73 28 29 3b 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |als();..|}....sim|
|00001090| 75 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |ulated f|unction |
|000010a0| 55 70 64 61 74 65 50 72 | 65 63 61 63 68 65 53 74 |UpdatePr|ecacheSt|
|000010b0| 61 74 69 63 4d 65 73 68 | 65 73 28 29 0d 0a 7b 0d |aticMesh|es()..{.|
|000010c0| 0a 20 20 20 20 69 66 20 | 28 44 65 61 64 53 74 61 |. if |(DeadSta|
|000010d0| 74 69 63 4d 65 73 68 20 | 21 3d 20 4e 6f 6e 65 29 |ticMesh |!= None)|
|000010e0| 0d 0a 09 20 20 20 4c 65 | 76 65 6c 2e 41 64 64 50 |... Le|vel.AddP|
|000010f0| 72 65 63 61 63 68 65 53 | 74 61 74 69 63 4d 65 73 |recacheS|taticMes|
|00001100| 68 28 44 65 61 64 53 74 | 61 74 69 63 4d 65 73 68 |h(DeadSt|aticMesh|
|00001110| 29 3b 0d 0a 0d 0a 09 53 | 75 70 65 72 2e 55 70 64 |);.....S|uper.Upd|
|00001120| 61 74 65 50 72 65 63 61 | 63 68 65 53 74 61 74 69 |atePreca|cheStati|
|00001130| 63 4d 65 73 68 65 73 28 | 29 3b 0d 0a 7d 0d 0a 0d |cMeshes(|);..}...|
|00001140| 0a 65 76 65 6e 74 20 53 | 65 74 49 6e 69 74 69 61 |.event S|etInitia|
|00001150| 6c 53 74 61 74 65 28 29 | 0d 0a 7b 0d 0a 20 20 20 |lState()|..{.. |
|00001160| 20 44 69 73 61 62 6c 65 | 28 27 54 69 63 6b 27 29 | Disable|('Tick')|
|00001170| 3b 0d 0a 0d 0a 09 49 6e | 69 74 69 61 6c 53 74 61 |;.....In|itialSta|
|00001180| 74 65 20 3d 20 27 27 3b | 0d 0a 0d 0a 20 20 20 20 |te = '';|.... |
|00001190| 69 66 20 28 50 6f 77 65 | 72 4c 69 6e 6b 73 2e 6c |if (Powe|rLinks.l|
|000011a0| 65 6e 67 74 68 20 3d 3d | 20 30 29 0d 0a 20 20 20 |ength ==| 0).. |
|000011b0| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 43 6f 72 65 | {.. | Core|
|000011c0| 53 74 61 67 65 20 3d 20 | 32 35 35 3b 0d 0a 20 20 |Stage = |255;.. |
|000011d0| 20 20 20 20 20 20 50 6f | 77 65 72 43 6f 72 65 44 | Po|werCoreD|
|000011e0| 69 73 61 62 6c 65 64 28 | 29 3b 0d 0a 20 20 20 20 |isabled(|);.. |
|000011f0| 20 20 20 20 49 6e 69 74 | 69 61 6c 53 74 61 74 65 | Init|ialState|
|00001200| 20 3d 20 27 44 69 73 61 | 62 6c 65 64 43 6f 72 65 | = 'Disa|bledCore|
|00001210| 27 3b 0d 0a 20 20 20 20 | 7d 0d 0a 20 20 20 20 65 |';.. |}.. e|
|00001220| 6c 73 65 20 69 66 20 28 | 62 53 74 61 72 74 4e 65 |lse if (|bStartNe|
|00001230| 75 74 72 61 6c 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |utral)..| {.. |
|00001240| 20 20 20 20 20 20 20 43 | 6f 72 65 53 74 61 67 65 | C|oreStage|
|00001250| 20 3d 20 34 3b 0d 0a 20 | 20 20 20 20 20 20 20 50 | = 4;.. | P|
|00001260| 6f 77 65 72 43 6f 72 65 | 4e 65 75 74 72 61 6c 28 |owerCore|Neutral(|
|00001270| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 49 6e 69 74 |);.. | Init|
|00001280| 69 61 6c 53 74 61 74 65 | 20 3d 20 27 4e 65 75 74 |ialState| = 'Neut|
|00001290| 72 61 6c 43 6f 72 65 27 | 3b 0d 0a 20 20 20 20 7d |ralCore'|;.. }|
|000012a0| 0d 0a 20 20 20 20 65 6c | 73 65 0d 0a 20 20 20 20 |.. el|se.. |
|000012b0| 7b 0d 0a 09 09 43 6f 72 | 65 53 74 61 67 65 20 3d |{....Cor|eStage =|
|000012c0| 20 30 3b 0d 0a 20 20 20 | 20 20 20 20 20 50 6f 77 | 0;.. | Pow|
|000012d0| 65 72 43 6f 72 65 41 63 | 74 69 76 65 28 29 3b 0d |erCoreAc|tive();.|
|000012e0| 0a 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 53 75 |. }..|.. Su|
|000012f0| 70 65 72 2e 53 65 74 49 | 6e 69 74 69 61 6c 53 74 |per.SetI|nitialSt|
|00001300| 61 74 65 28 29 3b 0d 0a | 7d 0d 0a 0d 0a 73 69 6d |ate();..|}....sim|
|00001310| 75 6c 61 74 65 64 20 65 | 76 65 6e 74 20 42 65 67 |ulated e|vent Beg|
|00001320| 69 6e 50 6c 61 79 28 29 | 0d 0a 7b 0d 0a 20 20 20 |inPlay()|..{.. |
|00001330| 20 50 6f 77 65 72 4c 69 | 6e 6b 73 2e 4c 65 6e 67 | PowerLi|nks.Leng|
|00001340| 74 68 20 3d 20 30 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |th = 0;.|.}....si|
|00001350| 6d 75 6c 61 74 65 64 20 | 65 76 65 6e 74 20 50 6f |mulated |event Po|
|00001360| 73 74 42 65 67 69 6e 50 | 6c 61 79 28 29 0d 0a 7b |stBeginP|lay()..{|
|00001370| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 62 6f 6f 6c |.. lo|cal bool|
|00001380| 20 62 57 61 73 44 69 73 | 61 62 6c 65 64 3b 0d 0a | bWasDis|abled;..|
|00001390| 0d 0a 20 20 20 20 62 57 | 61 73 44 69 73 61 62 6c |.. bW|asDisabl|
|000013a0| 65 64 20 3d 20 62 44 69 | 73 61 62 6c 65 64 3b 0d |ed = bDi|sabled;.|
|000013b0| 0a 20 20 20 20 53 75 70 | 65 72 2e 50 6f 73 74 42 |. Sup|er.PostB|
|000013c0| 65 67 69 6e 50 6c 61 79 | 28 29 3b 0d 0a 20 20 20 |eginPlay|();.. |
|000013d0| 20 62 44 69 73 61 62 6c | 65 64 20 3d 20 62 57 61 | bDisabl|ed = bWa|
|000013e0| 73 44 69 73 61 62 6c 65 | 64 3b 0d 0a 0d 0a 20 20 |sDisable|d;.... |
|000013f0| 20 20 53 68 69 65 6c 64 | 20 3d 20 53 70 61 77 6e | Shield| = Spawn|
|00001400| 28 53 68 69 65 6c 64 43 | 6c 61 73 73 2c 20 73 65 |(ShieldC|lass, se|
|00001410| 6c 66 2c 2c 20 4c 6f 63 | 61 74 69 6f 6e 20 2b 20 |lf,, Loc|ation + |
|00001420| 53 68 69 65 6c 64 4f 66 | 66 73 65 74 29 3b 0d 0a |ShieldOf|fset);..|
|00001430| 0d 0a 20 20 20 20 53 65 | 74 75 70 50 6f 77 65 72 |.. Se|tupPower|
|00001440| 4c 69 6e 6b 73 28 29 3b | 0d 0a 0d 0a 20 20 20 20 |Links();|.... |
|00001450| 69 66 20 28 52 6f 6c 65 | 20 3d 3d 20 52 4f 4c 45 |if (Role| == ROLE|
|00001460| 5f 41 75 74 68 6f 72 69 | 74 79 29 0d 0a 20 20 20 |_Authori|ty).. |
|00001470| 20 09 53 70 61 77 6e 4e | 6f 64 65 54 65 6c 65 70 | .SpawnN|odeTelep|
|00001480| 6f 72 74 54 72 69 67 67 | 65 72 28 29 3b 0d 0a 7d |ortTrigg|er();..}|
|00001490| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 53 70 61 |....func|tion Spa|
|000014a0| 77 6e 4e 6f 64 65 54 65 | 6c 65 70 6f 72 74 54 72 |wnNodeTe|leportTr|
|000014b0| 69 67 67 65 72 28 29 0d | 0a 7b 0d 0a 09 54 65 6c |igger().|.{...Tel|
|000014c0| 65 70 6f 72 74 54 72 69 | 67 67 65 72 20 3d 20 73 |eportTri|gger = s|
|000014d0| 70 61 77 6e 28 63 6c 61 | 73 73 27 4f 4e 53 50 43 |pawn(cla|ss'ONSPC|
|000014e0| 54 65 6c 65 70 6f 72 74 | 54 72 69 67 67 65 72 27 |Teleport|Trigger'|
|000014f0| 2c 20 73 65 6c 66 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |, self);|..}....s|
|00001500| 69 6d 75 6c 61 74 65 64 | 20 65 76 65 6e 74 20 50 |imulated| event P|
|00001510| 6f 73 74 4e 65 74 42 65 | 67 69 6e 50 6c 61 79 28 |ostNetBe|ginPlay(|
|00001520| 29 0d 0a 7b 0d 0a 20 20 | 20 20 46 69 6e 64 43 6c |)..{.. | FindCl|
|00001530| 6f 73 65 41 63 74 6f 72 | 73 28 29 3b 0d 0a 20 20 |oseActor|s();.. |
|00001540| 20 20 43 68 65 63 6b 53 | 68 69 65 6c 64 28 29 3b | CheckS|hield();|
|00001550| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00001560| 20 66 75 6e 63 74 69 6f | 6e 20 4f 4e 53 50 6f 77 | functio|n ONSPow|
|00001570| 65 72 43 6f 72 65 20 43 | 6c 6f 73 65 73 74 54 6f |erCore C|losestTo|
|00001580| 28 41 63 74 6f 72 20 41 | 29 0d 0a 7b 0d 0a 20 20 |(Actor A|)..{.. |
|00001590| 20 20 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 44 69 | local |float Di|
|000015a0| 73 74 61 6e 63 65 2c 20 | 42 65 73 74 44 69 73 74 |stance, |BestDist|
|000015b0| 61 6e 63 65 3b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |ance;.. | local|
|000015c0| 20 4f 4e 53 50 6f 77 65 | 72 43 6f 72 65 20 43 2c | ONSPowe|rCore C,|
|000015d0| 20 42 65 73 74 3b 0d 0a | 0d 0a 09 42 65 73 74 44 | Best;..|...BestD|
|000015e0| 69 73 74 61 6e 63 65 20 | 3d 20 56 53 69 7a 65 28 |istance |= VSize(|
|000015f0| 41 2e 4c 6f 63 61 74 69 | 6f 6e 20 2d 20 4c 6f 63 |A.Locati|on - Loc|
|00001600| 61 74 69 6f 6e 29 3b 0d | 0a 09 42 65 73 74 20 3d |ation);.|..Best =|
|00001610| 20 53 65 6c 66 3b 0d 0a | 0d 0a 09 66 6f 72 20 28 | Self;..|...for (|
|00001620| 20 43 20 3d 20 4e 65 78 | 74 43 6f 72 65 3b 20 43 | C = Nex|tCore; C|
|00001630| 20 21 3d 20 53 65 6c 66 | 20 26 26 20 43 20 21 3d | != Self| && C !=|
|00001640| 20 4e 6f 6e 65 3b 20 43 | 20 3d 20 43 2e 4e 65 78 | None; C| = C.Nex|
|00001650| 74 43 6f 72 65 20 29 0d | 0a 09 7b 0d 0a 09 09 44 |tCore ).|..{....D|
|00001660| 69 73 74 61 6e 63 65 20 | 3d 20 56 53 69 7a 65 28 |istance |= VSize(|
|00001670| 41 2e 4c 6f 63 61 74 69 | 6f 6e 20 2d 20 43 2e 4c |A.Locati|on - C.L|
|00001680| 6f 63 61 74 69 6f 6e 29 | 3b 0d 0a 09 09 69 66 20 |ocation)|;....if |
|00001690| 28 20 44 69 73 74 61 6e | 63 65 20 3c 20 42 65 73 |( Distan|ce < Bes|
|000016a0| 74 44 69 73 74 61 6e 63 | 65 20 29 0d 0a 09 09 7b |tDistanc|e )....{|
|000016b0| 0d 0a 09 09 09 42 65 73 | 74 44 69 73 74 61 6e 63 |.....Bes|tDistanc|
|000016c0| 65 20 3d 20 44 69 73 74 | 61 6e 63 65 3b 0d 0a 09 |e = Dist|ance;...|
|000016d0| 09 09 42 65 73 74 20 3d | 20 43 3b 0d 0a 09 09 7d |..Best =| C;....}|
|000016e0| 0d 0a 09 7d 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |...}....|.return |
|000016f0| 42 65 73 74 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |Best;..}|....simu|
|00001700| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 46 |lated fu|nction F|
|00001710| 69 6e 64 43 6c 6f 73 65 | 41 63 74 6f 72 73 28 29 |indClose|Actors()|
|00001720| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 41 63 74 6f |..{...lo|cal Acto|
|00001730| 72 20 41 3b 0d 0a 0d 0a | 09 43 6c 6f 73 65 41 63 |r A;....|.CloseAc|
|00001740| 74 6f 72 73 2e 4c 65 6e | 67 74 68 20 3d 20 30 3b |tors.Len|gth = 0;|
|00001750| 0d 0a 0d 0a 09 69 66 20 | 28 52 6f 6c 65 20 3d 3d |.....if |(Role ==|
|00001760| 20 52 4f 4c 45 5f 41 75 | 74 68 6f 72 69 74 79 29 | ROLE_Au|thority)|
|00001770| 0d 0a 09 7b 0d 0a 09 09 | 66 6f 72 65 61 63 68 20 |...{....|foreach |
|00001780| 41 6c 6c 41 63 74 6f 72 | 73 28 63 6c 61 73 73 20 |AllActor|s(class |
|00001790| 27 41 63 74 6f 72 27 2c | 20 41 29 0d 0a 09 09 09 |'Actor',| A).....|
|000017a0| 69 66 20 28 20 28 41 2e | 49 73 41 28 27 50 6c 61 |if ( (A.|IsA('Pla|
|000017b0| 79 65 72 53 74 61 72 74 | 27 29 20 7c 7c 20 41 2e |yerStart|') || A.|
|000017c0| 49 73 41 28 27 4f 4e 53 | 56 65 68 69 63 6c 65 46 |IsA('ONS|VehicleF|
|000017d0| 61 63 74 6f 72 79 27 29 | 20 7c 7c 20 41 2e 49 73 |actory')| || A.Is|
|000017e0| 41 28 27 4f 4e 53 53 74 | 61 74 69 6f 6e 61 72 79 |A('ONSSt|ationary|
|000017f0| 57 65 61 70 6f 6e 50 61 | 77 6e 27 29 20 7c 7c 20 |WeaponPa|wn') || |
|00001800| 41 2e 49 73 41 28 27 78 | 54 65 61 6d 42 61 6e 6e |A.IsA('x|TeamBann|
|00001810| 65 72 27 29 20 7c 7c 20 | 41 2e 49 73 41 28 27 4f |er') || |A.IsA('O|
|00001820| 4e 53 54 65 6c 65 70 6f | 72 74 50 61 64 27 29 29 |NSTelepo|rtPad'))|
|00001830| 0d 0a 09 09 09 20 20 20 | 20 20 26 26 20 43 6c 6f |..... | && Clo|
|00001840| 73 65 73 74 54 6f 28 41 | 29 20 3d 3d 20 73 65 6c |sestTo(A|) == sel|
|00001850| 66 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 69 |f ).....|{......i|
|00001860| 66 20 28 41 2e 49 73 41 | 28 27 4f 4e 53 54 65 6c |f (A.IsA|('ONSTel|
|00001870| 65 70 6f 72 74 50 61 64 | 27 29 29 0d 0a 09 09 09 |eportPad|')).....|
|00001880| 09 7b 0d 0a 09 09 09 09 | 09 41 2e 53 65 74 4f 77 |.{......|.A.SetOw|
|00001890| 6e 65 72 28 73 65 6c 66 | 29 3b 0d 0a 09 09 09 09 |ner(self|);......|
|000018a0| 09 54 65 6c 65 70 6f 72 | 74 50 61 64 73 5b 54 65 |.Telepor|tPads[Te|
|000018b0| 6c 65 70 6f 72 74 50 61 | 64 73 2e 6c 65 6e 67 74 |leportPa|ds.lengt|
|000018c0| 68 5d 20 3d 20 4f 4e 53 | 54 65 6c 65 70 6f 72 74 |h] = ONS|Teleport|
|000018d0| 50 61 64 28 41 29 3b 0d | 0a 09 09 09 09 7d 0d 0a |Pad(A);.|.....}..|
|000018e0| 09 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 09 09 43 |....else|.......C|
|000018f0| 6c 6f 73 65 41 63 74 6f | 72 73 5b 43 6c 6f 73 65 |loseActo|rs[Close|
|00001900| 41 63 74 6f 72 73 2e 4c | 65 6e 67 74 68 5d 20 3d |Actors.L|ength] =|
|00001910| 20 41 3b 0d 0a 09 09 09 | 7d 0d 0a 09 7d 0d 0a 09 | A;.....|}...}...|
|00001920| 65 6c 73 65 0d 0a 09 7b | 0d 0a 09 09 66 6f 72 65 |else...{|....fore|
|00001930| 61 63 68 20 41 6c 6c 41 | 63 74 6f 72 73 28 63 6c |ach AllA|ctors(cl|
|00001940| 61 73 73 27 41 63 74 6f | 72 27 2c 20 41 29 0d 0a |ass'Acto|r', A)..|
|00001950| 09 09 09 69 66 20 28 28 | 41 2e 49 73 41 28 27 78 |...if ((|A.IsA('x|
|00001960| 54 65 61 6d 42 61 6e 6e | 65 72 27 29 20 7c 7c 20 |TeamBann|er') || |
|00001970| 41 2e 49 73 41 28 27 4f | 4e 53 54 65 6c 65 70 6f |A.IsA('O|NSTelepo|
|00001980| 72 74 50 61 64 27 29 29 | 20 26 26 20 43 6c 6f 73 |rtPad'))| && Clos|
|00001990| 65 73 74 54 6f 28 41 29 | 20 3d 3d 20 73 65 6c 66 |estTo(A)| == self|
|000019a0| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 69 66 20 |).....{.|.....if |
|000019b0| 28 41 2e 49 73 41 28 27 | 4f 4e 53 54 65 6c 65 70 |(A.IsA('|ONSTelep|
|000019c0| 6f 72 74 50 61 64 27 29 | 29 0d 0a 09 09 09 09 7b |ortPad')|)......{|
|000019d0| 0d 0a 09 09 09 09 09 41 | 2e 53 65 74 4f 77 6e 65 |.......A|.SetOwne|
|000019e0| 72 28 73 65 6c 66 29 3b | 0d 0a 09 09 09 09 09 54 |r(self);|.......T|
|000019f0| 65 6c 65 70 6f 72 74 50 | 61 64 73 5b 54 65 6c 65 |eleportP|ads[Tele|
|00001a00| 70 6f 72 74 50 61 64 73 | 2e 6c 65 6e 67 74 68 5d |portPads|.length]|
|00001a10| 20 3d 20 4f 4e 53 54 65 | 6c 65 70 6f 72 74 50 61 | = ONSTe|leportPa|
|00001a20| 64 28 41 29 3b 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 |d(A);...|...}....|
|00001a30| 09 09 65 6c 73 65 0d 0a | 09 09 09 09 09 43 6c 6f |..else..|.....Clo|
|00001a40| 73 65 41 63 74 6f 72 73 | 5b 43 6c 6f 73 65 41 63 |seActors|[CloseAc|
|00001a50| 74 6f 72 73 2e 4c 65 6e | 67 74 68 5d 20 3d 20 41 |tors.Len|gth] = A|
|00001a60| 3b 0d 0a 09 09 09 7d 0d | 0a 09 7d 0d 0a 7d 0d 0a |;.....}.|..}..}..|
|00001a70| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|00001a80| 74 69 6f 6e 20 53 65 74 | 75 70 50 6f 77 65 72 4c |tion Set|upPowerL|
|00001a90| 69 6e 6b 73 28 29 0d 0a | 7b 0d 0a 20 20 20 20 6c |inks()..|{.. l|
|00001aa0| 6f 63 61 6c 20 4f 4e 53 | 50 6f 77 65 72 43 6f 72 |ocal ONS|PowerCor|
|00001ab0| 65 20 50 43 3b 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |e PC;.. | local|
|00001ac0| 20 4e 61 76 69 67 61 74 | 69 6f 6e 50 6f 69 6e 74 | Navigat|ionPoint|
|00001ad0| 20 4e 3b 0d 0a 0d 0a 2f | 2f 09 6c 6f 67 28 4e 61 | N;..../|/.log(Na|
|00001ae0| 6d 65 40 22 53 65 74 75 | 70 50 6f 77 65 72 4c 69 |me@"Setu|pPowerLi|
|00001af0| 6e 6b 73 28 29 22 29 3b | 0d 0a 20 20 20 20 66 6f |nks()");|.. fo|
|00001b00| 72 20 28 20 4e 20 3d 20 | 4c 65 76 65 6c 2e 4e 61 |r ( N = |Level.Na|
|00001b10| 76 69 67 61 74 69 6f 6e | 50 6f 69 6e 74 4c 69 73 |vigation|PointLis|
|00001b20| 74 3b 20 4e 20 21 3d 20 | 4e 6f 6e 65 3b 20 4e 20 |t; N != |None; N |
|00001b30| 3d 20 4e 2e 6e 65 78 74 | 4e 61 76 69 67 61 74 69 |= N.next|Navigati|
|00001b40| 6f 6e 50 6f 69 6e 74 20 | 29 0d 0a 20 20 20 20 7b |onPoint |).. {|
|00001b50| 0d 0a 20 20 20 20 09 50 | 43 20 3d 20 4f 4e 53 50 |.. .P|C = ONSP|
|00001b60| 6f 77 65 72 43 6f 72 65 | 28 4e 29 3b 0d 0a 20 20 |owerCore|(N);.. |
|00001b70| 20 20 09 69 66 20 28 20 | 50 43 20 21 3d 20 4e 6f | .if ( |PC != No|
|00001b80| 6e 65 20 29 0d 0a 20 20 | 20 20 09 7b 0d 0a 20 20 |ne ).. | .{.. |
|00001b90| 20 20 09 09 69 66 20 28 | 20 4e 65 78 74 43 6f 72 | ..if (| NextCor|
|00001ba0| 65 20 3d 3d 20 4e 6f 6e | 65 20 29 0d 0a 20 20 20 |e == Non|e ).. |
|00001bb0| 20 09 09 7b 0d 0a 09 09 | 09 09 69 66 20 28 20 50 | ..{....|..if ( P|
|00001bc0| 43 2e 4e 65 78 74 43 6f | 72 65 20 3d 3d 20 4e 6f |C.NextCo|re == No|
|00001bd0| 6e 65 20 29 0d 0a 09 09 | 09 09 09 4e 65 78 74 43 |ne )....|...NextC|
|00001be0| 6f 72 65 20 3d 20 50 43 | 3b 0d 0a 09 09 09 09 65 |ore = PC|;......e|
|00001bf0| 6c 73 65 20 4e 65 78 74 | 43 6f 72 65 20 3d 20 50 |lse Next|Core = P|
|00001c00| 43 2e 4e 65 78 74 43 6f | 72 65 3b 0d 0a 09 09 09 |C.NextCo|re;.....|
|00001c10| 09 50 43 2e 4e 65 78 74 | 43 6f 72 65 20 3d 20 53 |.PC.Next|Core = S|
|00001c20| 65 6c 66 3b 0d 0a 09 09 | 09 7d 0d 0a 0d 0a 09 09 |elf;....|.}......|
|00001c30| 09 69 66 20 28 20 53 68 | 6f 75 6c 64 4c 69 6e 6b |.if ( Sh|ouldLink|
|00001c40| 54 6f 28 50 43 29 20 29 | 0d 0a 09 09 09 09 41 64 |To(PC) )|......Ad|
|00001c50| 64 50 6f 77 65 72 4c 69 | 6e 6b 28 50 43 29 3b 0d |dPowerLi|nk(PC);.|
|00001c60| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 7d 0d 0a 0d 0a 73 |...}...}|..}....s|
|00001c70| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00001c80| 6e 20 52 65 73 65 74 4c | 69 6e 6b 73 28 29 0d 0a |n ResetL|inks()..|
|00001c90| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 4f 4e 53 50 6f 77 |{...loca|l ONSPow|
|00001ca0| 65 72 43 6f 72 65 20 43 | 6f 72 65 3b 0d 0a 0d 0a |erCore C|ore;....|
|00001cb0| 09 50 6f 77 65 72 4c 69 | 6e 6b 73 2e 52 65 6d 6f |.PowerLi|nks.Remo|
|00001cc0| 76 65 28 30 2c 50 6f 77 | 65 72 4c 69 6e 6b 73 2e |ve(0,Pow|erLinks.|
|00001cd0| 4c 65 6e 67 74 68 29 3b | 0d 0a 09 43 6f 72 65 20 |Length);|...Core |
|00001ce0| 3d 20 4e 65 78 74 43 6f | 72 65 3b 0d 0a 09 64 6f |= NextCo|re;...do|
|00001cf0| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 20 53 68 6f |...{....|if ( Sho|
|00001d00| 75 6c 64 4c 69 6e 6b 54 | 6f 28 43 6f 72 65 29 20 |uldLinkT|o(Core) |
|00001d10| 29 0d 0a 09 09 09 41 64 | 64 50 6f 77 65 72 4c 69 |).....Ad|dPowerLi|
|00001d20| 6e 6b 28 43 6f 72 65 29 | 3b 0d 0a 0d 0a 09 09 43 |nk(Core)|;......C|
|00001d30| 6f 72 65 20 3d 20 43 6f | 72 65 2e 4e 65 78 74 43 |ore = Co|re.NextC|
|00001d40| 6f 72 65 3b 0d 0a 09 7d | 0d 0a 09 75 6e 74 69 6c |ore;...}|...until|
|00001d50| 20 28 20 43 6f 72 65 20 | 3d 3d 20 4e 6f 6e 65 20 | ( Core |== None |
|00001d60| 7c 7c 20 43 6f 72 65 20 | 3d 3d 20 53 65 6c 66 20 ||| Core |== Self |
|00001d70| 29 3b 0d 0a 0d 0a 09 53 | 65 74 49 6e 69 74 69 61 |);.....S|etInitia|
|00001d80| 6c 53 74 61 74 65 28 29 | 3b 0d 0a 7d 0d 0a 0d 0a |lState()|;..}....|
|00001d90| 66 75 6e 63 74 69 6f 6e | 20 53 65 76 65 72 28 29 |function| Sever()|
|00001da0| 0d 0a 7b 0d 0a 09 69 66 | 20 28 4c 65 76 65 6c 2e |..{...if| (Level.|
|00001db0| 47 61 6d 65 2e 52 65 73 | 65 74 43 6f 75 6e 74 44 |Game.Res|etCountD|
|00001dc0| 6f 77 6e 20 3c 3d 20 30 | 20 26 26 20 21 4c 65 76 |own <= 0| && !Lev|
|00001dd0| 65 6c 2e 47 61 6d 65 2e | 62 47 61 6d 65 45 6e 64 |el.Game.|bGameEnd|
|00001de0| 65 64 29 0d 0a 09 7b 0d | 0a 09 09 53 65 74 54 69 |ed)...{.|...SetTi|
|00001df0| 6d 65 72 28 31 2e 30 2c | 20 54 72 75 65 29 3b 0d |mer(1.0,| True);.|
|00001e00| 0a 09 09 69 66 20 28 44 | 65 66 65 6e 64 65 72 54 |...if (D|efenderT|
|00001e10| 65 61 6d 49 6e 64 65 78 | 20 3d 3d 20 30 29 0d 0a |eamIndex| == 0)..|
|00001e20| 09 09 09 42 72 6f 61 64 | 63 61 73 74 4c 6f 63 61 |...Broad|castLoca|
|00001e30| 6c 69 7a 65 64 4d 65 73 | 73 61 67 65 28 63 6c 61 |lizedMes|sage(cla|
|00001e40| 73 73 27 4f 4e 53 4f 6e | 73 6c 61 75 67 68 74 4d |ss'ONSOn|slaughtM|
|00001e50| 65 73 73 61 67 65 27 2c | 20 32 37 29 3b 0d 0a 09 |essage',| 27);...|
|00001e60| 09 65 6c 73 65 20 69 66 | 20 28 44 65 66 65 6e 64 |.else if| (Defend|
|00001e70| 65 72 54 65 61 6d 49 6e | 64 65 78 20 3d 3d 20 31 |erTeamIn|dex == 1|
|00001e80| 29 0d 0a 09 09 09 42 72 | 6f 61 64 63 61 73 74 4c |).....Br|oadcastL|
|00001e90| 6f 63 61 6c 69 7a 65 64 | 4d 65 73 73 61 67 65 28 |ocalized|Message(|
|00001ea0| 63 6c 61 73 73 27 4f 4e | 53 4f 6e 73 6c 61 75 67 |class'ON|SOnslaug|
|00001eb0| 68 74 4d 65 73 73 61 67 | 65 27 2c 20 32 38 29 3b |htMessag|e', 28);|
|00001ec0| 0d 0a 09 7d 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |...}..}.|...funct|
|00001ed0| 69 6f 6e 20 55 6e 53 65 | 76 65 72 28 29 0d 0a 7b |ion UnSe|ver()..{|
|00001ee0| 0d 0a 20 20 20 20 53 65 | 74 54 69 6d 65 72 28 30 |.. Se|tTimer(0|
|00001ef0| 2c 20 66 61 6c 73 65 29 | 3b 0d 0a 7d 0d 0a 0d 0a |, false)|;..}....|
|00001f00| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|00001f10| 6f 6e 20 41 64 64 50 6f | 77 65 72 4c 69 6e 6b 28 |on AddPo|werLink(|
|00001f20| 4f 4e 53 50 6f 77 65 72 | 43 6f 72 65 20 50 43 29 |ONSPower|Core PC)|
|00001f30| 0d 0a 7b 0d 0a 20 20 20 | 20 69 66 20 28 20 50 43 |..{.. | if ( PC|
|00001f40| 20 3d 3d 20 73 65 6c 66 | 20 7c 7c 20 4c 69 6e 6b | == self| || Link|
|00001f50| 65 64 54 6f 28 50 43 29 | 20 29 0d 0a 20 20 20 20 |edTo(PC)| ).. |
|00001f60| 09 72 65 74 75 72 6e 3b | 0d 0a 0d 0a 20 20 20 20 |.return;|.... |
|00001f70| 50 6f 77 65 72 4c 69 6e | 6b 73 5b 50 6f 77 65 72 |PowerLin|ks[Power|
|00001f80| 4c 69 6e 6b 73 2e 4c 65 | 6e 67 74 68 5d 20 3d 20 |Links.Le|ngth] = |
|00001f90| 50 43 3b 0d 0a 09 69 66 | 20 28 20 50 43 2e 62 46 |PC;...if| ( PC.bF|
|00001fa0| 69 6e 61 6c 43 6f 72 65 | 20 29 0d 0a 09 09 44 65 |inalCore| )....De|
|00001fb0| 66 65 6e 73 65 50 72 69 | 6f 72 69 74 79 20 3d 20 |fensePri|ority = |
|00001fc0| 4d 61 78 28 44 65 66 65 | 6e 73 65 50 72 69 6f 72 |Max(Defe|nsePrior|
|00001fd0| 69 74 79 2c 20 35 29 3b | 0d 0a 0d 0a 09 50 43 2e |ity, 5);|.....PC.|
|00001fe0| 41 64 64 50 6f 77 65 72 | 4c 69 6e 6b 28 53 65 6c |AddPower|Link(Sel|
|00001ff0| 66 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |f);..}..|..simula|
|00002000| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 52 65 6d |ted func|tion Rem|
|00002010| 6f 76 65 50 6f 77 65 72 | 4c 69 6e 6b 28 4f 4e 53 |ovePower|Link(ONS|
|00002020| 50 6f 77 65 72 43 6f 72 | 65 20 50 43 29 0d 0a 7b |PowerCor|e PC)..{|
|00002030| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 69 6e 74 20 |.. lo|cal int |
|00002040| 69 3b 0d 0a 0d 0a 09 69 | 20 3d 20 46 69 6e 64 4e |i;.....i| = FindN|
|00002050| 6f 64 65 4c 69 6e 6b 49 | 6e 64 65 78 28 50 43 29 |odeLinkI|ndex(PC)|
|00002060| 3b 0d 0a 0d 0a 2f 2f 09 | 6c 6f 67 28 4e 61 6d 65 |;....//.|log(Name|
|00002070| 40 22 52 65 6d 6f 76 65 | 50 6f 77 65 72 4c 69 6e |@"Remove|PowerLin|
|00002080| 6b 20 22 40 50 43 2e 4e | 61 6d 65 29 3b 0d 0a 09 |k "@PC.N|ame);...|
|00002090| 69 66 20 28 20 69 20 21 | 3d 20 2d 31 20 29 0d 0a |if ( i !|= -1 )..|
|000020a0| 09 7b 0d 0a 09 09 50 6f | 77 65 72 4c 69 6e 6b 73 |.{....Po|werLinks|
|000020b0| 2e 52 65 6d 6f 76 65 28 | 69 2c 31 29 3b 0d 0a 09 |.Remove(|i,1);...|
|000020c0| 09 69 66 20 28 20 62 46 | 69 6e 61 6c 43 6f 72 65 |.if ( bF|inalCore|
|000020d0| 20 29 0d 0a 09 09 09 50 | 43 2e 52 65 6d 6f 76 65 | ).....P|C.Remove|
|000020e0| 64 43 6f 72 65 4c 69 6e | 6b 28 29 3b 0d 0a 2f 2f |dCoreLin|k();..//|
|000020f0| 09 09 50 43 2e 52 65 6d | 6f 76 65 50 6f 77 65 72 |..PC.Rem|ovePower|
|00002100| 4c 69 6e 6b 28 73 65 6c | 66 29 3b 0d 0a 09 7d 0d |Link(sel|f);...}.|
|00002110| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00002120| 66 75 6e 63 74 69 6f 6e | 20 52 65 6d 6f 76 65 64 |function| Removed|
|00002130| 43 6f 72 65 4c 69 6e 6b | 28 29 0d 0a 7b 0d 0a 09 |CoreLink|()..{...|
|00002140| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|00002150| 09 66 6f 72 20 28 20 69 | 20 3d 20 30 3b 20 69 20 |.for ( i| = 0; i |
|00002160| 3c 20 50 6f 77 65 72 4c | 69 6e 6b 73 2e 4c 65 6e |< PowerL|inks.Len|
|00002170| 67 74 68 3b 20 69 2b 2b | 20 29 0d 0a 09 09 69 66 |gth; i++| )....if|
|00002180| 20 28 20 50 6f 77 65 72 | 4c 69 6e 6b 73 5b 69 5d | ( Power|Links[i]|
|00002190| 2e 62 46 69 6e 61 6c 43 | 6f 72 65 20 29 0d 0a 09 |.bFinalC|ore )...|
|000021a0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 0d 0a 09 44 65 |..return|;.....De|
|000021b0| 66 65 6e 73 65 50 72 69 | 6f 72 69 74 79 20 3d 20 |fensePri|ority = |
|000021c0| 64 65 66 61 75 6c 74 2e | 44 65 66 65 6e 73 65 50 |default.|DefenseP|
|000021d0| 72 69 6f 72 69 74 79 3b | 0d 0a 7d 0d 0a 0d 0a 73 |riority;|..}....s|
|000021e0| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|000021f0| 6e 20 70 72 6f 74 65 63 | 74 65 64 20 62 6f 6f 6c |n protec|ted bool|
|00002200| 20 53 68 6f 75 6c 64 4c | 69 6e 6b 54 6f 28 20 4f | ShouldL|inkTo( O|
|00002210| 4e 53 50 6f 77 65 72 43 | 6f 72 65 20 4e 6f 64 65 |NSPowerC|ore Node|
|00002220| 20 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e | )..{...|local in|
|00002230| 74 20 69 3b 0d 0a 0d 0a | 09 69 66 20 28 20 4e 6f |t i;....|.if ( No|
|00002240| 64 65 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |de == No|ne )....|
|00002250| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 0d |return f|alse;...|
|00002260| 0a 20 20 20 20 66 6f 72 | 20 28 69 3d 30 3b 20 69 |. for| (i=0; i|
|00002270| 3c 4c 69 6e 6b 65 64 4e | 6f 64 65 73 2e 4c 65 6e |<LinkedN|odes.Len|
|00002280| 67 74 68 3b 20 69 2b 2b | 29 0d 0a 20 20 20 20 09 |gth; i++|).. .|
|00002290| 69 66 20 28 20 4e 6f 64 | 65 2e 4e 61 6d 65 20 3d |if ( Nod|e.Name =|
|000022a0| 3d 20 4c 69 6e 6b 65 64 | 4e 6f 64 65 73 5b 69 5d |= Linked|Nodes[i]|
|000022b0| 20 29 0d 0a 20 20 20 20 | 09 09 72 65 74 75 72 6e | ).. |..return|
|000022c0| 20 74 72 75 65 3b 0d 0a | 0d 0a 20 20 20 20 72 65 | true;..|.. re|
|000022d0| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 7d 0d 0a |turn fal|se;..}..|
|000022e0| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|000022f0| 74 69 6f 6e 20 62 6f 6f | 6c 20 4c 69 6e 6b 65 64 |tion boo|l Linked|
|00002300| 54 6f 28 4f 4e 53 50 6f | 77 65 72 43 6f 72 65 20 |To(ONSPo|werCore |
|00002310| 50 43 29 0d 0a 7b 0d 0a | 09 72 65 74 75 72 6e 20 |PC)..{..|.return |
|00002320| 46 69 6e 64 4e 6f 64 65 | 4c 69 6e 6b 49 6e 64 65 |FindNode|LinkInde|
|00002330| 78 28 50 43 29 20 21 3d | 20 2d 31 3b 0d 0a 7d 0d |x(PC) !=| -1;..}.|
|00002340| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00002350| 63 74 69 6f 6e 20 69 6e | 74 20 46 69 6e 64 4e 6f |ction in|t FindNo|
|00002360| 64 65 4c 69 6e 6b 49 6e | 64 65 78 28 20 4f 4e 53 |deLinkIn|dex( ONS|
|00002370| 50 6f 77 65 72 43 6f 72 | 65 20 4e 6f 64 65 20 29 |PowerCor|e Node )|
|00002380| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 |..{...lo|cal int |
|00002390| 69 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 4e 6f 64 65 |i;.....i|f ( Node|
|000023a0| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 72 65 | == None| )....re|
|000023b0| 74 75 72 6e 20 2d 31 3b | 0d 0a 0d 0a 09 66 6f 72 |turn -1;|.....for|
|000023c0| 20 28 20 69 20 3d 20 30 | 3b 20 69 20 3c 20 50 6f | ( i = 0|; i < Po|
|000023d0| 77 65 72 4c 69 6e 6b 73 | 2e 4c 65 6e 67 74 68 3b |werLinks|.Length;|
|000023e0| 20 69 2b 2b 20 29 0d 0a | 09 09 69 66 20 28 20 50 | i++ )..|..if ( P|
|000023f0| 6f 77 65 72 4c 69 6e 6b | 73 5b 69 5d 20 3d 3d 20 |owerLink|s[i] == |
|00002400| 4e 6f 64 65 20 29 0d 0a | 09 09 09 72 65 74 75 72 |Node )..|...retur|
|00002410| 6e 20 69 3b 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |n i;....|.return |
|00002420| 2d 31 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |-1;..}..|..functi|
|00002430| 6f 6e 20 44 69 73 61 62 | 6c 65 4f 62 6a 65 63 74 |on Disab|leObject|
|00002440| 69 76 65 28 50 61 77 6e | 20 49 6e 73 74 69 67 61 |ive(Pawn| Instiga|
|00002450| 74 6f 72 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |tor)..{.|..local |
|00002460| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00002470| 6e 49 6e 66 6f 09 50 52 | 49 3b 0d 0a 0d 0a 09 69 |nInfo.PR|I;.....i|
|00002480| 66 20 28 43 6f 72 65 53 | 74 61 67 65 20 21 3d 20 |f (CoreS|tage != |
|00002490| 35 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 49 |5)...{..|..if ( I|
|000024a0| 6e 73 74 69 67 61 74 6f | 72 20 21 3d 20 4e 6f 6e |nstigato|r != Non|
|000024b0| 65 20 29 0d 0a 09 09 09 | 50 52 49 20 3d 20 49 6e |e ).....|PRI = In|
|000024c0| 73 74 69 67 61 74 6f 72 | 2e 50 6c 61 79 65 72 52 |stigator|.PlayerR|
|000024d0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 3b 0d |eplicati|onInfo;.|
|000024e0| 0a 09 09 65 6c 73 65 20 | 69 66 20 28 20 44 65 6c |...else |if ( Del|
|000024f0| 61 79 65 64 44 61 6d 61 | 67 65 49 6e 73 74 69 67 |ayedDama|geInstig|
|00002500| 61 74 6f 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 21 |atorCont|roller !|
|00002510| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 50 52 49 |= None )|.....PRI|
|00002520| 20 3d 20 44 65 6c 61 79 | 65 64 44 61 6d 61 67 65 | = Delay|edDamage|
|00002530| 49 6e 73 74 69 67 61 74 | 6f 72 43 6f 6e 74 72 6f |Instigat|orContro|
|00002540| 6c 6c 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ller.Pla|yerRepli|
|00002550| 63 61 74 69 6f 6e 49 6e | 66 6f 3b 0d 0a 0d 0a 09 |cationIn|fo;.....|
|00002560| 09 42 72 6f 61 64 63 61 | 73 74 4c 6f 63 61 6c 69 |.Broadca|stLocali|
|00002570| 7a 65 64 4d 65 73 73 61 | 67 65 28 63 6c 61 73 73 |zedMessa|ge(class|
|00002580| 27 4f 4e 53 4f 6e 73 6c | 61 75 67 68 74 4d 65 73 |'ONSOnsl|aughtMes|
|00002590| 73 61 67 65 27 2c 20 44 | 65 73 74 72 75 63 74 69 |sage', D|estructi|
|000025a0| 6f 6e 4d 65 73 73 61 67 | 65 49 6e 64 65 78 20 2b |onMessag|eIndex +|
|000025b0| 20 44 65 66 65 6e 64 65 | 72 54 65 61 6d 49 6e 64 | Defende|rTeamInd|
|000025c0| 65 78 2c 20 50 52 49 29 | 3b 0d 0a 0d 0a 09 09 69 |ex, PRI)|;......i|
|000025d0| 66 20 28 20 62 41 63 63 | 72 75 65 50 6f 69 6e 74 |f ( bAcc|ruePoint|
|000025e0| 73 20 29 0d 0a 09 09 09 | 4c 65 76 65 6c 2e 47 61 |s ).....|Level.Ga|
|000025f0| 6d 65 2e 53 63 6f 72 65 | 4f 62 6a 65 63 74 69 76 |me.Score|Objectiv|
|00002600| 65 28 20 50 52 49 2c 20 | 30 20 29 3b 0d 0a 09 09 |e( PRI, |0 );....|
|00002610| 65 6c 73 65 0d 0a 09 09 | 7b 0d 0a 09 09 09 69 66 |else....|{.....if|
|00002620| 20 28 43 6f 72 65 53 74 | 61 67 65 20 3d 3d 20 30 | (CoreSt|age == 0|
|00002630| 29 0d 0a 09 09 09 09 53 | 68 61 72 65 53 63 6f 72 |)......S|hareScor|
|00002640| 65 28 53 63 6f 72 65 2c | 20 44 65 73 74 72 6f 79 |e(Score,| Destroy|
|00002650| 65 64 45 76 65 6e 74 5b | 44 65 66 65 6e 64 65 72 |edEvent[|Defender|
|00002660| 54 65 61 6d 49 6e 64 65 | 78 5d 29 3b 0d 0a 09 09 |TeamInde|x]);....|
|00002670| 09 65 6c 73 65 0d 0a 09 | 09 09 09 53 68 61 72 65 |.else...|...Share|
|00002680| 53 63 6f 72 65 28 53 63 | 6f 72 65 2c 20 44 65 73 |Score(Sc|ore, Des|
|00002690| 74 72 6f 79 65 64 45 76 | 65 6e 74 5b 32 2b 44 65 |troyedEv|ent[2+De|
|000026a0| 66 65 6e 64 65 72 54 65 | 61 6d 49 6e 64 65 78 5d |fenderTe|amIndex]|
|000026b0| 29 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |);....}.|..}.....|
|000026c0| 43 6f 72 65 53 74 61 67 | 65 20 3d 20 31 3b 0d 0a |CoreStag|e = 1;..|
|000026d0| 09 54 72 69 67 67 65 72 | 45 76 65 6e 74 28 44 65 |.Trigger|Event(De|
|000026e0| 73 74 72 6f 79 65 64 45 | 76 65 6e 74 4e 61 6d 65 |stroyedE|ventName|
|000026f0| 2c 20 73 65 6c 66 2c 20 | 4e 6f 6e 65 29 3b 0d 0a |, self, |None);..|
|00002700| 0d 0a 09 50 6f 77 65 72 | 43 6f 72 65 44 65 73 74 |...Power|CoreDest|
|00002710| 72 6f 79 65 64 28 29 3b | 0d 0a 0d 0a 09 55 6e 72 |royed();|.....Unr|
|00002720| 65 61 6c 4d 50 47 61 6d | 65 49 6e 66 6f 28 4c 65 |ealMPGam|eInfo(Le|
|00002730| 76 65 6c 2e 47 61 6d 65 | 29 2e 4f 62 6a 65 63 74 |vel.Game|).Object|
|00002740| 69 76 65 44 69 73 61 62 | 6c 65 64 28 53 65 6c 66 |iveDisab|led(Self|
|00002750| 29 3b 0d 0a 09 55 6e 72 | 65 61 6c 4d 50 47 61 6d |);...Unr|ealMPGam|
|00002760| 65 49 6e 66 6f 28 4c 65 | 76 65 6c 2e 47 61 6d 65 |eInfo(Le|vel.Game|
|00002770| 29 2e 46 69 6e 64 4e 65 | 77 4f 62 6a 65 63 74 69 |).FindNe|wObjecti|
|00002780| 76 65 73 28 53 65 6c 66 | 29 3b 0d 0a 09 54 72 69 |ves(Self|);...Tri|
|00002790| 67 67 65 72 45 76 65 6e | 74 28 45 76 65 6e 74 2c |ggerEven|t(Event,|
|000027a0| 20 73 65 6c 66 2c 20 49 | 6e 73 74 69 67 61 74 6f | self, I|nstigato|
|000027b0| 72 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |r);..}..|..functi|
|000027c0| 6f 6e 20 54 61 6b 65 44 | 61 6d 61 67 65 28 69 6e |on TakeD|amage(in|
|000027d0| 74 20 44 61 6d 61 67 65 | 2c 20 50 61 77 6e 20 69 |t Damage|, Pawn i|
|000027e0| 6e 73 74 69 67 61 74 65 | 64 42 79 2c 20 56 65 63 |nstigate|dBy, Vec|
|000027f0| 74 6f 72 20 68 69 74 6c | 6f 63 61 74 69 6f 6e 2c |tor hitl|ocation,|
|00002800| 20 56 65 63 74 6f 72 20 | 6d 6f 6d 65 6e 74 75 6d | Vector |momentum|
|00002810| 2c 20 63 6c 61 73 73 3c | 44 61 6d 61 67 65 54 79 |, class<|DamageTy|
|00002820| 70 65 3e 20 64 61 6d 61 | 67 65 54 79 70 65 29 0d |pe> dama|geType).|
|00002830| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 43 6f 6e 74 72 |.{...loc|al Contr|
|00002840| 6f 6c 6c 65 72 20 49 6e | 73 74 69 67 61 74 6f 72 |oller In|stigator|
|00002850| 43 6f 6e 74 72 6f 6c 6c | 65 72 3b 0d 0a 0d 0a 09 |Controll|er;.....|
|00002860| 2f 2f 69 66 20 28 69 6e | 73 74 69 67 61 74 65 64 |//if (in|stigated|
|00002870| 42 79 20 21 3d 20 4e 6f | 6e 65 20 26 26 20 53 63 |By != No|ne && Sc|
|00002880| 72 69 70 74 65 64 43 6f | 6e 74 72 6f 6c 6c 65 72 |riptedCo|ntroller|
|00002890| 28 69 6e 73 74 69 67 61 | 74 65 64 42 79 2e 43 6f |(instiga|tedBy.Co|
|000028a0| 6e 74 72 6f 6c 6c 65 72 | 29 20 21 3d 20 4e 6f 6e |ntroller|) != Non|
|000028b0| 65 29 0d 0a 09 2f 2f 09 | 4c 6f 67 28 22 53 43 52 |e)...//.|Log("SCR|
|000028c0| 49 50 54 45 44 20 44 41 | 4d 41 47 45 3a 22 40 44 |IPTED DA|MAGE:"@D|
|000028d0| 61 6d 61 67 65 40 22 43 | 4f 52 45 53 54 41 47 45 |amage@"C|ORESTAGE|
|000028e0| 3a 22 40 43 6f 72 65 53 | 74 61 67 65 40 22 48 45 |:"@CoreS|tage@"HE|
|000028f0| 41 4c 54 48 3a 22 40 48 | 65 61 6c 74 68 40 22 50 |ALTH:"@H|ealth@"P|
|00002900| 4f 57 45 52 45 44 42 59 | 49 4e 53 54 49 47 41 54 |OWEREDBY|INSTIGAT|
|00002910| 45 44 3a 22 40 50 6f 77 | 65 72 65 64 42 79 28 69 |ED:"@Pow|eredBy(i|
|00002920| 6e 73 74 69 67 61 74 65 | 64 42 79 2e 47 65 74 54 |nstigate|dBy.GetT|
|00002930| 65 61 6d 4e 75 6d 28 29 | 29 29 3b 0d 0a 0d 0a 09 |eamNum()|));.....|
|00002940| 69 66 20 28 43 6f 72 65 | 53 74 61 67 65 20 3d 3d |if (Core|Stage ==|
|00002950| 20 34 20 7c 7c 20 43 6f | 72 65 53 74 61 67 65 20 | 4 || Co|reStage |
|00002960| 3d 3d 20 31 20 7c 7c 20 | 44 61 6d 61 67 65 20 3c |== 1 || |Damage <|
|00002970| 3d 20 30 20 7c 7c 20 4c | 65 76 65 6c 2e 47 61 6d |= 0 || L|evel.Gam|
|00002980| 65 2e 52 65 73 65 74 43 | 6f 75 6e 74 64 6f 77 6e |e.ResetC|ountdown|
|00002990| 20 3e 20 30 20 7c 7c 20 | 4c 65 76 65 6c 2e 47 61 | > 0 || |Level.Ga|
|000029a0| 6d 65 2e 62 47 61 6d 65 | 45 6e 64 65 64 29 0d 0a |me.bGame|Ended)..|
|000029b0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 0d 0a 09 69 66 |..return|;.....if|
|000029c0| 20 28 64 61 6d 61 67 65 | 54 79 70 65 20 3d 3d 20 | (damage|Type == |
|000029d0| 4e 6f 6e 65 20 7c 7c 20 | 21 64 61 6d 61 67 65 54 |None || |!damageT|
|000029e0| 79 70 65 2e 64 65 66 61 | 75 6c 74 2e 62 44 65 6c |ype.defa|ult.bDel|
|000029f0| 61 79 65 64 44 61 6d 61 | 67 65 29 0d 0a 09 09 44 |ayedDama|ge)....D|
|00002a00| 65 6c 61 79 65 64 44 61 | 6d 61 67 65 49 6e 73 74 |elayedDa|mageInst|
|00002a10| 69 67 61 74 6f 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |igatorCo|ntroller|
|00002a20| 20 3d 20 4e 6f 6e 65 3b | 0d 0a 09 69 66 20 28 69 | = None;|...if (i|
|00002a30| 6e 73 74 69 67 61 74 65 | 64 42 79 20 21 3d 20 4e |nstigate|dBy != N|
|00002a40| 6f 6e 65 20 26 26 20 69 | 6e 73 74 69 67 61 74 65 |one && i|nstigate|
|00002a50| 64 42 79 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 21 |dBy.Cont|roller !|
|00002a60| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 49 6e 73 74 69 |= None).|...Insti|
|00002a70| 67 61 74 6f 72 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |gatorCon|troller |
|00002a80| 3d 20 69 6e 73 74 69 67 | 61 74 65 64 42 79 2e 43 |= instig|atedBy.C|
|00002a90| 6f 6e 74 72 6f 6c 6c 65 | 72 3b 0d 0a 09 65 6c 73 |ontrolle|r;...els|
|00002aa0| 65 0d 0a 09 09 49 6e 73 | 74 69 67 61 74 6f 72 43 |e....Ins|tigatorC|
|00002ab0| 6f 6e 74 72 6f 6c 6c 65 | 72 20 3d 20 44 65 6c 61 |ontrolle|r = Dela|
|00002ac0| 79 65 64 44 61 6d 61 67 | 65 49 6e 73 74 69 67 61 |yedDamag|eInstiga|
|00002ad0| 74 6f 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 3b 0d 0a |torContr|oller;..|
|00002ae0| 0d 0a 09 69 66 20 28 49 | 6e 73 74 69 67 61 74 6f |...if (I|nstigato|
|00002af0| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 20 3d 3d 20 4e |rControl|ler == N|
|00002b00| 6f 6e 65 20 26 26 20 64 | 61 6d 61 67 65 54 79 70 |one && d|amageTyp|
|00002b10| 65 20 21 3d 20 4e 6f 6e | 65 29 0d 0a 09 09 72 65 |e != Non|e)....re|
|00002b20| 74 75 72 6e 3b 0d 0a 0d | 0a 20 20 20 20 69 66 20 |turn;...|. if |
|00002b30| 28 64 61 6d 61 67 65 54 | 79 70 65 20 21 3d 20 4e |(damageT|ype != N|
|00002b40| 6f 6e 65 29 0d 0a 09 44 | 61 6d 61 67 65 20 2a 3d |one)...D|amage *=|
|00002b50| 20 64 61 6d 61 67 65 54 | 79 70 65 2e 64 65 66 61 | damageT|ype.defa|
|00002b60| 75 6c 74 2e 56 65 68 69 | 63 6c 65 44 61 6d 61 67 |ult.Vehi|cleDamag|
|00002b70| 65 53 63 61 6c 69 6e 67 | 3b 0d 0a 20 20 20 20 69 |eScaling|;.. i|
|00002b80| 66 20 28 69 6e 73 74 69 | 67 61 74 65 64 42 79 20 |f (insti|gatedBy |
|00002b90| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 20 20 20 20 7b 0d |!= None)|.. {.|
|00002ba0| 0a 20 20 20 20 09 69 66 | 20 28 69 6e 73 74 69 67 |. .if| (instig|
|00002bb0| 61 74 65 64 42 79 2e 48 | 61 73 55 44 61 6d 61 67 |atedBy.H|asUDamag|
|00002bc0| 65 28 29 29 0d 0a 09 09 | 44 61 6d 61 67 65 20 2a |e())....|Damage *|
|00002bd0| 3d 20 32 3b 0d 0a 09 44 | 61 6d 61 67 65 20 2a 3d |= 2;...D|amage *=|
|00002be0| 20 69 6e 73 74 69 67 61 | 74 65 64 42 79 2e 44 61 | instiga|tedBy.Da|
|00002bf0| 6d 61 67 65 53 63 61 6c | 69 6e 67 3b 0d 0a 20 20 |mageScal|ing;.. |
|00002c00| 20 20 7d 0d 0a 0d 0a 20 | 20 20 20 69 66 20 28 20 | }.... | if ( |
|00002c10| 49 6e 73 74 69 67 61 74 | 6f 72 43 6f 6e 74 72 6f |Instigat|orContro|
|00002c20| 6c 6c 65 72 20 3d 3d 20 | 4e 6f 6e 65 20 7c 7c 20 |ller == |None || |
|00002c30| 28 49 6e 73 74 69 67 61 | 74 6f 72 43 6f 6e 74 72 |(Instiga|torContr|
|00002c40| 6f 6c 6c 65 72 2e 47 65 | 74 54 65 61 6d 4e 75 6d |oller.Ge|tTeamNum|
|00002c50| 28 29 20 21 3d 20 44 65 | 66 65 6e 64 65 72 54 65 |() != De|fenderTe|
|00002c60| 61 6d 49 6e 64 65 78 20 | 26 26 20 50 6f 77 65 72 |amIndex |&& Power|
|00002c70| 65 64 42 79 28 49 6e 73 | 74 69 67 61 74 6f 72 43 |edBy(Ins|tigatorC|
|00002c80| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 47 65 74 54 65 61 |ontrolle|r.GetTea|
|00002c90| 6d 4e 75 6d 28 29 29 29 | 20 29 0d 0a 20 20 20 20 |mNum()))| ).. |
|00002ca0| 7b 0d 0a 09 4e 65 74 55 | 70 64 61 74 65 54 69 6d |{...NetU|pdateTim|
|00002cb0| 65 20 3d 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |e = Leve|l.TimeSe|
|00002cc0| 63 6f 6e 64 73 20 2d 20 | 31 3b 0d 0a 20 20 20 20 |conds - |1;.. |
|00002cd0| 09 41 63 63 75 6d 75 6c | 61 74 65 64 44 61 6d 61 |.Accumul|atedDama|
|00002ce0| 67 65 20 2b 3d 20 44 61 | 6d 61 67 65 3b 0d 0a 20 |ge += Da|mage;.. |
|00002cf0| 20 20 20 09 69 66 20 28 | 28 44 61 6d 61 67 65 45 | .if (|(DamageE|
|00002d00| 76 65 6e 74 54 68 72 65 | 73 68 6f 6c 64 20 3e 20 |ventThre|shold > |
|00002d10| 30 29 20 26 26 20 28 41 | 63 63 75 6d 75 6c 61 74 |0) && (A|ccumulat|
|00002d20| 65 64 44 61 6d 61 67 65 | 20 3e 3d 20 44 61 6d 61 |edDamage| >= Dama|
|00002d30| 67 65 45 76 65 6e 74 54 | 68 72 65 73 68 6f 6c 64 |geEventT|hreshold|
|00002d40| 29 29 0d 0a 20 20 20 20 | 09 7b 0d 0a 20 20 20 20 |)).. |.{.. |
|00002d50| 09 09 54 72 69 67 67 65 | 72 45 76 65 6e 74 28 54 |..Trigge|rEvent(T|
|00002d60| 61 6b 65 44 61 6d 61 67 | 65 45 76 65 6e 74 2c 73 |akeDamag|eEvent,s|
|00002d70| 65 6c 66 2c 20 49 6e 73 | 74 69 67 61 74 65 64 42 |elf, Ins|tigatedB|
|00002d80| 79 29 3b 0d 0a 20 20 20 | 20 09 09 41 63 63 75 6d |y);.. | ..Accum|
|00002d90| 75 6c 61 74 65 64 44 61 | 6d 61 67 65 20 3d 20 30 |ulatedDa|mage = 0|
|00002da0| 3b 0d 0a 20 20 20 20 09 | 7d 0d 0a 09 69 66 20 28 |;.. .|}...if (|
|00002db0| 49 6e 73 74 69 67 61 74 | 6f 72 43 6f 6e 74 72 6f |Instigat|orContro|
|00002dc0| 6c 6c 65 72 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |ller != |None)...|
|00002dd0| 7b 0d 0a 09 09 4c 61 73 | 74 44 61 6d 61 67 65 64 |{....Las|tDamaged|
|00002de0| 42 79 20 3d 20 49 6e 73 | 74 69 67 61 74 6f 72 43 |By = Ins|tigatorC|
|00002df0| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |ontrolle|r.Player|
|00002e00| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 3b |Replicat|ionInfo;|
|00002e10| 0d 0a 09 09 41 64 64 53 | 63 6f 72 65 72 28 49 6e |....AddS|corer(In|
|00002e20| 73 74 69 67 61 74 6f 72 | 43 6f 6e 74 72 6f 6c 6c |stigator|Controll|
|00002e30| 65 72 2c 20 46 4d 69 6e | 28 48 65 61 6c 74 68 2c |er, FMin|(Health,|
|00002e40| 20 44 61 6d 61 67 65 29 | 20 2f 20 44 61 6d 61 67 | Damage)| / Damag|
|00002e50| 65 43 61 70 61 63 69 74 | 79 29 3b 0d 0a 09 7d 0d |eCapacit|y);...}.|
|00002e60| 0a 20 20 20 20 09 48 65 | 61 6c 74 68 20 2d 3d 20 |. .He|alth -= |
|00002e70| 44 61 6d 61 67 65 3b 0d | 0a 20 20 20 20 09 69 66 |Damage;.|. .if|
|00002e80| 20 28 20 48 65 61 6c 74 | 68 20 3c 20 30 20 29 0d | ( Healt|h < 0 ).|
|00002e90| 0a 20 20 20 20 09 09 44 | 69 73 61 62 6c 65 4f 62 |. ..D|isableOb|
|00002ea0| 6a 65 63 74 69 76 65 28 | 69 6e 73 74 69 67 61 74 |jective(|instigat|
|00002eb0| 65 64 42 79 29 3b 0d 0a | 09 65 6c 73 65 20 69 66 |edBy);..|.else if|
|00002ec0| 20 28 64 61 6d 61 67 65 | 54 79 70 65 20 21 3d 20 | (damage|Type != |
|00002ed0| 4e 6f 6e 65 29 0d 0a 09 | 7b 0d 0a 09 09 2f 2f 61 |None)...|{....//a|
|00002ee0| 74 74 61 63 6b 20 6e 6f | 74 69 66 69 63 61 74 69 |ttack no|tificati|
|00002ef0| 6f 6e 0d 0a 09 09 69 66 | 20 28 4c 61 73 74 41 74 |on....if| (LastAt|
|00002f00| 74 61 63 6b 4d 65 73 73 | 61 67 65 54 69 6d 65 20 |tackMess|ageTime |
|00002f10| 2b 20 31 20 3c 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |+ 1 < Le|vel.Time|
|00002f20| 53 65 63 6f 6e 64 73 29 | 0d 0a 09 09 7b 0d 0a 09 |Seconds)|....{...|
|00002f30| 09 09 69 66 20 28 62 46 | 69 6e 61 6c 43 6f 72 65 |..if (bF|inalCore|
|00002f40| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 69 66 20 |).....{.|.....if |
|00002f50| 28 66 6c 6f 61 74 28 48 | 65 61 6c 74 68 29 20 2f |(float(H|ealth) /|
|00002f60| 20 44 61 6d 61 67 65 43 | 61 70 61 63 69 74 79 20 | DamageC|apacity |
|00002f70| 3e 20 30 2e 35 35 29 0d | 0a 09 09 09 09 09 42 72 |> 0.55).|......Br|
|00002f80| 6f 61 64 63 61 73 74 4c | 6f 63 61 6c 69 7a 65 64 |oadcastL|ocalized|
|00002f90| 4d 65 73 73 61 67 65 28 | 63 6c 61 73 73 27 4f 4e |Message(|class'ON|
|00002fa0| 53 4f 6e 73 6c 61 75 67 | 68 74 4d 65 73 73 61 67 |SOnslaug|htMessag|
|00002fb0| 65 27 2c 20 37 20 2b 20 | 44 65 66 65 6e 64 65 72 |e', 7 + |Defender|
|00002fc0| 54 65 61 6d 49 6e 64 65 | 78 2c 2c 2c 20 73 65 6c |TeamInde|x,,, sel|
|00002fd0| 66 29 3b 0d 0a 09 09 09 | 09 65 6c 73 65 20 69 66 |f);.....|.else if|
|00002fe0| 20 28 66 6c 6f 61 74 28 | 48 65 61 6c 74 68 29 20 | (float(|Health) |
|00002ff0| 2f 20 44 61 6d 61 67 65 | 43 61 70 61 63 69 74 79 |/ Damage|Capacity|
|00003000| 20 3e 20 30 2e 34 35 29 | 0d 0a 09 09 09 09 09 42 | > 0.45)|.......B|
|00003010| 72 6f 61 64 63 61 73 74 | 4c 6f 63 61 6c 69 7a 65 |roadcast|Localize|
|00003020| 64 4d 65 73 73 61 67 65 | 28 63 6c 61 73 73 27 4f |dMessage|(class'O|
|00003030| 4e 53 4f 6e 73 6c 61 75 | 67 68 74 4d 65 73 73 61 |NSOnslau|ghtMessa|
|00003040| 67 65 27 2c 20 32 35 20 | 2b 20 44 65 66 65 6e 64 |ge', 25 |+ Defend|
|00003050| 65 72 54 65 61 6d 49 6e | 64 65 78 2c 2c 2c 20 73 |erTeamIn|dex,,, s|
|00003060| 65 6c 66 29 3b 0d 0a 09 | 09 09 09 65 6c 73 65 0d |elf);...|...else.|
|00003070| 0a 09 09 09 09 09 42 72 | 6f 61 64 63 61 73 74 4c |......Br|oadcastL|
|00003080| 6f 63 61 6c 69 7a 65 64 | 4d 65 73 73 61 67 65 28 |ocalized|Message(|
|00003090| 63 6c 61 73 73 27 4f 4e | 53 4f 6e 73 6c 61 75 67 |class'ON|SOnslaug|
|000030a0| 68 74 4d 65 73 73 61 67 | 65 27 2c 20 31 38 20 2b |htMessag|e', 18 +|
|000030b0| 20 44 65 66 65 6e 64 65 | 72 54 65 61 6d 49 6e 64 | Defende|rTeamInd|
|000030c0| 65 78 2c 2c 2c 20 73 65 | 6c 66 29 3b 0d 0a 09 09 |ex,,, se|lf);....|
|000030d0| 09 7d 0d 0a 09 09 09 65 | 6c 73 65 0d 0a 09 09 09 |.}.....e|lse.....|
|000030e0| 09 42 72 6f 61 64 63 61 | 73 74 4c 6f 63 61 6c 69 |.Broadca|stLocali|
|000030f0| 7a 65 64 4d 65 73 73 61 | 67 65 28 63 6c 61 73 73 |zedMessa|ge(class|
|00003100| 27 4f 4e 53 4f 6e 73 6c | 61 75 67 68 74 4d 65 73 |'ONSOnsl|aughtMes|
|00003110| 73 61 67 65 27 2c 20 39 | 20 2b 20 44 65 66 65 6e |sage', 9| + Defen|
|00003120| 64 65 72 54 65 61 6d 49 | 6e 64 65 78 2c 2c 2c 20 |derTeamI|ndex,,, |
|00003130| 73 65 6c 66 29 3b 0d 0a | 09 09 09 55 6e 72 65 61 |self);..|...Unrea|
|00003140| 6c 54 65 61 6d 49 6e 66 | 6f 28 4c 65 76 65 6c 2e |lTeamInf|o(Level.|
|00003150| 47 52 49 2e 54 65 61 6d | 73 5b 44 65 66 65 6e 64 |GRI.Team|s[Defend|
|00003160| 65 72 54 65 61 6d 49 6e | 64 65 78 5d 29 2e 41 49 |erTeamIn|dex]).AI|
|00003170| 2e 43 72 69 74 69 63 61 | 6c 4f 62 6a 65 63 74 69 |.Critica|lObjecti|
|00003180| 76 65 57 61 72 6e 69 6e | 67 28 73 65 6c 66 2c 20 |veWarnin|g(self, |
|00003190| 69 6e 73 74 69 67 61 74 | 65 64 42 79 29 3b 0d 0a |instigat|edBy);..|
|000031a0| 09 09 09 4c 61 73 74 41 | 74 74 61 63 6b 4d 65 73 |...LastA|ttackMes|
|000031b0| 73 61 67 65 54 69 6d 65 | 20 3d 20 4c 65 76 65 6c |sageTime| = Level|
|000031c0| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 3b 0d 0a 09 |.TimeSec|onds;...|
|000031d0| 09 7d 0d 0a 09 09 4c 61 | 73 74 41 74 74 61 63 6b |.}....La|stAttack|
|000031e0| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|000031f0| 65 53 65 63 6f 6e 64 73 | 3b 0d 0a 09 7d 0d 0a 20 |eSeconds|;...}.. |
|00003200| 20 20 20 7d 0d 0a 20 20 | 20 20 65 6c 73 65 20 69 | }.. | else i|
|00003210| 66 20 28 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c |f (Playe|rControl|
|00003220| 6c 65 72 28 49 6e 73 74 | 69 67 61 74 6f 72 43 6f |ler(Inst|igatorCo|
|00003230| 6e 74 72 6f 6c 6c 65 72 | 29 20 21 3d 20 4e 6f 6e |ntroller|) != Non|
|00003240| 65 29 0d 0a 20 20 20 20 | 7b 0d 0a 20 20 20 20 09 |e).. |{.. .|
|00003250| 69 66 20 28 49 6e 73 74 | 69 67 61 74 6f 72 43 6f |if (Inst|igatorCo|
|00003260| 6e 74 72 6f 6c 6c 65 72 | 2e 47 65 74 54 65 61 6d |ntroller|.GetTeam|
|00003270| 4e 75 6d 28 29 20 21 3d | 20 44 65 66 65 6e 64 65 |Num() !=| Defende|
|00003280| 72 54 65 61 6d 49 6e 64 | 65 78 29 0d 0a 09 20 20 |rTeamInd|ex)... |
|00003290| 20 20 20 20 20 20 50 6c | 61 79 65 72 43 6f 6e 74 | Pl|ayerCont|
|000032a0| 72 6f 6c 6c 65 72 28 49 | 6e 73 74 69 67 61 74 6f |roller(I|nstigato|
|000032b0| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 29 2e 52 65 63 |rControl|ler).Rec|
|000032c0| 65 69 76 65 4c 6f 63 61 | 6c 69 7a 65 64 4d 65 73 |eiveLoca|lizedMes|
|000032d0| 73 61 67 65 28 63 6c 61 | 73 73 27 4f 4e 53 4f 6e |sage(cla|ss'ONSOn|
|000032e0| 73 6c 61 75 67 68 74 4d | 65 73 73 61 67 65 27 2c |slaughtM|essage',|
|000032f0| 20 35 29 3b 0d 0a 09 65 | 6c 73 65 20 69 66 20 28 | 5);...e|lse if (|
|00003300| 62 46 69 6e 61 6c 43 6f | 72 65 20 26 26 20 44 61 |bFinalCo|re && Da|
|00003310| 6d 61 67 65 54 79 70 65 | 20 3d 3d 20 63 6c 61 73 |mageType| == clas|
|00003320| 73 27 44 61 6d 54 79 70 | 65 4c 69 6e 6b 53 68 61 |s'DamTyp|eLinkSha|
|00003330| 66 74 27 29 0d 0a 09 09 | 50 6c 61 79 65 72 43 6f |ft')....|PlayerCo|
|00003340| 6e 74 72 6f 6c 6c 65 72 | 28 49 6e 73 74 69 67 61 |ntroller|(Instiga|
|00003350| 74 6f 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 29 2e 52 |torContr|oller).R|
|00003360| 65 63 65 69 76 65 4c 6f | 63 61 6c 69 7a 65 64 4d |eceiveLo|calizedM|
|00003370| 65 73 73 61 67 65 28 63 | 6c 61 73 73 27 4f 4e 53 |essage(c|lass'ONS|
|00003380| 4f 6e 73 6c 61 75 67 68 | 74 4d 65 73 73 61 67 65 |Onslaugh|tMessage|
|00003390| 27 2c 20 33 30 29 3b 0d | 0a 20 20 20 20 7d 0d 0a |', 30);.|. }..|
|000033a0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |}....fun|ction bo|
|000033b0| 6f 6c 20 48 65 61 6c 44 | 61 6d 61 67 65 28 69 6e |ol HealD|amage(in|
|000033c0| 74 20 41 6d 6f 75 6e 74 | 2c 20 43 6f 6e 74 72 6f |t Amount|, Contro|
|000033d0| 6c 6c 65 72 20 48 65 61 | 6c 65 72 2c 20 63 6c 61 |ller Hea|ler, cla|
|000033e0| 73 73 3c 44 61 6d 61 67 | 65 54 79 70 65 3e 20 44 |ss<Damag|eType> D|
|000033f0| 61 6d 61 67 65 54 79 70 | 65 29 0d 0a 7b 0d 0a 09 |amageTyp|e)..{...|
|00003400| 69 66 20 28 43 6f 72 65 | 53 74 61 67 65 20 3d 3d |if (Core|Stage ==|
|00003410| 20 34 20 7c 7c 20 43 6f | 72 65 53 74 61 67 65 20 | 4 || Co|reStage |
|00003420| 3d 3d 20 31 20 7c 7c 20 | 48 65 61 6c 74 68 20 3c |== 1 || |Health <|
|00003430| 3d 20 30 20 7c 7c 20 41 | 6d 6f 75 6e 74 20 3c 3d |= 0 || A|mount <=|
|00003440| 20 30 20 7c 7c 20 48 65 | 61 6c 65 72 20 3d 3d 20 | 0 || He|aler == |
|00003450| 4e 6f 6e 65 20 7c 7c 20 | 21 54 65 61 6d 4c 69 6e |None || |!TeamLin|
|00003460| 6b 28 48 65 61 6c 65 72 | 2e 47 65 74 54 65 61 6d |k(Healer|.GetTeam|
|00003470| 4e 75 6d 28 29 29 29 0d | 0a 09 09 72 65 74 75 72 |Num())).|...retur|
|00003480| 6e 20 66 61 6c 73 65 3b | 0d 0a 0d 0a 09 69 66 20 |n false;|.....if |
|00003490| 28 48 65 61 6c 74 68 20 | 3e 3d 20 44 61 6d 61 67 |(Health |>= Damag|
|000034a0| 65 43 61 70 61 63 69 74 | 79 29 0d 0a 09 7b 0d 0a |eCapacit|y)...{..|
|000034b0| 20 20 20 20 20 20 20 20 | 69 66 20 28 4c 65 76 65 | |if (Leve|
|000034c0| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 20 2d 20 |l.TimeSe|conds - |
|000034d0| 48 65 61 6c 69 6e 67 54 | 69 6d 65 20 3c 20 30 2e |HealingT|ime < 0.|
|000034e0| 35 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |5).. | |
|000034f0| 50 6c 61 79 53 6f 75 6e | 64 28 48 65 61 6c 65 64 |PlaySoun|d(Healed|
|00003500| 53 6f 75 6e 64 2c 20 53 | 4c 4f 54 5f 4d 69 73 63 |Sound, S|LOT_Misc|
|00003510| 2c 20 35 2e 30 29 3b 0d | 0a 0d 0a 20 20 20 20 20 |, 5.0);.|... |
|00003520| 20 20 20 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b | retur|n false;|
|00003530| 0d 0a 20 20 20 20 7d 0d | 0a 0d 0a 09 41 6d 6f 75 |.. }.|....Amou|
|00003540| 6e 74 20 3d 20 4d 69 6e | 28 41 6d 6f 75 6e 74 20 |nt = Min|(Amount |
|00003550| 2a 20 4c 69 6e 6b 48 65 | 61 6c 4d 75 6c 74 2c 20 |* LinkHe|alMult, |
|00003560| 44 61 6d 61 67 65 43 61 | 70 61 63 69 74 79 20 2d |DamageCa|pacity -|
|00003570| 20 48 65 61 6c 74 68 29 | 3b 0d 0a 09 48 65 61 6c | Health)|;...Heal|
|00003580| 74 68 20 2b 3d 20 41 6d | 6f 75 6e 74 3b 0d 0a 09 |th += Am|ount;...|
|00003590| 69 66 20 28 4f 4e 53 50 | 6c 61 79 65 72 52 65 70 |if (ONSP|layerRep|
|000035a0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 28 48 65 61 |lication|Info(Hea|
|000035b0| 6c 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |ler.Play|erReplic|
|000035c0| 61 74 69 6f 6e 49 6e 66 | 6f 29 20 21 3d 20 4e 6f |ationInf|o) != No|
|000035d0| 6e 65 29 0d 0a 09 09 4f | 4e 53 50 6c 61 79 65 72 |ne)....O|NSPlayer|
|000035e0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 28 |Replicat|ionInfo(|
|000035f0| 48 65 61 6c 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Healer.P|layerRep|
|00003600| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 29 2e 41 64 |lication|Info).Ad|
|00003610| 64 48 65 61 6c 42 6f 6e | 75 73 28 66 6c 6f 61 74 |dHealBon|us(float|
|00003620| 28 41 6d 6f 75 6e 74 29 | 20 2f 20 44 61 6d 61 67 |(Amount)| / Damag|
|00003630| 65 43 61 70 61 63 69 74 | 79 20 2a 20 53 63 6f 72 |eCapacit|y * Scor|
|00003640| 65 29 3b 0d 0a 0d 0a 09 | 4e 65 74 55 70 64 61 74 |e);.....|NetUpdat|
|00003650| 65 54 69 6d 65 20 3d 20 | 4c 65 76 65 6c 2e 54 69 |eTime = |Level.Ti|
|00003660| 6d 65 53 65 63 6f 6e 64 | 73 20 2d 20 31 3b 0d 0a |meSecond|s - 1;..|
|00003670| 20 20 20 20 48 65 61 6c | 69 6e 67 54 69 6d 65 20 | Heal|ingTime |
|00003680| 3d 20 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f |= Level.|TimeSeco|
|00003690| 6e 64 73 3b 0d 0a 20 20 | 20 20 4c 61 73 74 48 65 |nds;.. | LastHe|
|000036a0| 61 6c 65 64 42 79 20 3d | 20 48 65 61 6c 65 72 3b |aledBy =| Healer;|
|000036b0| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 4e 6f 64 65 |.... |if (Node|
|000036c0| 48 65 61 6c 45 66 66 65 | 63 74 20 3d 3d 20 4e 6f |HealEffe|ct == No|
|000036d0| 6e 65 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |ne).. | {.. |
|000036e0| 20 20 20 20 4e 6f 64 65 | 48 65 61 6c 45 66 66 65 | Node|HealEffe|
|000036f0| 63 74 20 3d 20 53 70 61 | 77 6e 28 63 6c 61 73 73 |ct = Spa|wn(class|
|00003700| 27 4f 4e 53 4e 6f 64 65 | 48 65 61 6c 45 66 66 65 |'ONSNode|HealEffe|
|00003710| 63 74 27 2c 20 73 65 6c | 66 2c 2c 20 4c 6f 63 61 |ct', sel|f,, Loca|
|00003720| 74 69 6f 6e 20 2b 20 76 | 65 63 74 28 30 2c 30 2c |tion + v|ect(0,0,|
|00003730| 33 36 33 29 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |363));..| |
|00003740| 4e 6f 64 65 48 65 61 6c | 45 66 66 65 63 74 2e 41 |NodeHeal|Effect.A|
|00003750| 6d 62 69 65 6e 74 53 6f | 75 6e 64 20 3d 20 48 65 |mbientSo|und = He|
|00003760| 61 6c 69 6e 67 53 6f 75 | 6e 64 3b 0d 0a 20 20 20 |alingSou|nd;.. |
|00003770| 20 7d 0d 0a 0d 0a 20 20 | 20 20 45 6e 61 62 6c 65 | }.... | Enable|
|00003780| 28 27 54 69 63 6b 27 29 | 3b 0d 0a 0d 0a 20 20 20 |('Tick')|;.... |
|00003790| 20 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 7d | return |true;..}|
|000037a0| 0d 0a 0d 0a 73 69 6d 75 | 6c 61 74 65 64 20 65 76 |....simu|lated ev|
|000037b0| 65 6e 74 20 54 69 63 6b | 28 66 6c 6f 61 74 20 44 |ent Tick|(float D|
|000037c0| 54 29 0d 0a 7b 0d 0a 20 | 20 20 20 69 66 20 28 4c |T)..{.. | if (L|
|000037d0| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|000037e0| 20 2d 20 48 65 61 6c 69 | 6e 67 54 69 6d 65 20 3e | - Heali|ngTime >|
|000037f0| 20 30 2e 35 29 0d 0a 20 | 20 20 20 7b 0d 0a 20 20 | 0.5).. | {.. |
|00003800| 20 20 20 20 20 20 69 66 | 20 28 4e 6f 64 65 48 65 | if| (NodeHe|
|00003810| 61 6c 45 66 66 65 63 74 | 20 21 3d 20 4e 6f 6e 65 |alEffect| != None|
|00003820| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 4e |).. | N|
|00003830| 6f 64 65 48 65 61 6c 45 | 66 66 65 63 74 2e 44 65 |odeHealE|ffect.De|
|00003840| 73 74 72 6f 79 28 29 3b | 0d 0a 0d 0a 09 44 69 73 |stroy();|.....Dis|
|00003850| 61 62 6c 65 28 27 54 69 | 63 6b 27 29 3b 0d 0a 20 |able('Ti|ck');.. |
|00003860| 20 20 20 7d 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c | }..}.|...simul|
|00003870| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 62 6f |ated fun|ction bo|
|00003880| 6f 6c 20 50 6f 77 65 72 | 65 64 42 79 28 62 79 74 |ol Power|edBy(byt|
|00003890| 65 20 54 65 61 6d 29 0d | 0a 7b 0d 0a 20 20 20 20 |e Team).|.{.. |
|000038a0| 69 66 20 28 54 65 61 6d | 20 3d 3d 20 30 20 26 26 |if (Team| == 0 &&|
|000038b0| 20 62 50 6f 77 65 72 65 | 64 42 79 52 65 64 29 0d | bPowere|dByRed).|
|000038c0| 0a 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 |. | return |
|000038d0| 54 72 75 65 3b 0d 0a 20 | 20 20 20 69 66 20 28 54 |True;.. | if (T|
|000038e0| 65 61 6d 20 3d 3d 20 31 | 20 26 26 20 62 50 6f 77 |eam == 1| && bPow|
|000038f0| 65 72 65 64 42 79 42 6c | 75 65 29 0d 0a 20 20 20 |eredByBl|ue).. |
|00003900| 20 20 20 20 20 72 65 74 | 75 72 6e 20 54 72 75 65 | ret|urn True|
|00003910| 3b 0d 0a 20 20 20 20 72 | 65 74 75 72 6e 20 46 61 |;.. r|eturn Fa|
|00003920| 6c 73 65 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |lse;..}.|...funct|
|00003930| 69 6f 6e 20 62 6f 6f 6c | 20 4c 69 6e 6b 65 64 54 |ion bool| LinkedT|
|00003940| 6f 43 6f 72 65 43 6f 6e | 73 74 72 75 63 74 69 6e |oCoreCon|structin|
|00003950| 67 46 6f 72 28 62 79 74 | 65 20 54 65 61 6d 29 0d |gFor(byt|e Team).|
|00003960| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |.{...loc|al int i|
|00003970| 3b 0d 0a 0d 0a 09 66 6f | 72 20 28 69 20 3d 20 30 |;.....fo|r (i = 0|
|00003980| 3b 20 69 20 3c 20 50 6f | 77 65 72 4c 69 6e 6b 73 |; i < Po|werLinks|
|00003990| 2e 6c 65 6e 67 74 68 3b | 20 69 2b 2b 29 0d 0a 09 |.length;| i++)...|
|000039a0| 09 69 66 20 28 50 6f 77 | 65 72 4c 69 6e 6b 73 5b |.if (Pow|erLinks[|
|000039b0| 69 5d 2e 43 6f 72 65 53 | 74 61 67 65 20 3d 3d 20 |i].CoreS|tage == |
|000039c0| 32 20 26 26 20 50 6f 77 | 65 72 4c 69 6e 6b 73 5b |2 && Pow|erLinks[|
|000039d0| 69 5d 2e 44 65 66 65 6e | 64 65 72 54 65 61 6d 49 |i].Defen|derTeamI|
|000039e0| 6e 64 65 78 20 3d 3d 20 | 54 65 61 6d 29 0d 0a 09 |ndex == |Team)...|
|000039f0| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00003a00| 0d 0a 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00003a10| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00003a20| 20 65 76 65 6e 74 20 50 | 6f 73 74 4e 65 74 52 65 | event P|ostNetRe|
|00003a30| 63 65 69 76 65 28 29 0d | 0a 7b 0d 0a 20 20 20 20 |ceive().|.{.. |
|00003a40| 69 66 20 28 43 6f 72 65 | 53 74 61 67 65 20 21 3d |if (Core|Stage !=|
|00003a50| 20 4c 61 73 74 43 6f 72 | 65 53 74 61 67 65 29 0d | LastCor|eStage).|
|00003a60| 0a 20 20 20 20 7b 0d 0a | 2f 2f 20 20 20 20 09 6c |. {..|// .l|
|00003a70| 6f 67 28 4e 61 6d 65 40 | 22 43 6f 72 65 53 74 61 |og(Name@|"CoreSta|
|00003a80| 67 65 20 63 68 61 6e 67 | 65 64 20 66 72 6f 6d 20 |ge chang|ed from |
|00003a90| 22 24 4c 61 73 74 43 6f | 72 65 53 74 61 67 65 40 |"$LastCo|reStage@|
|00003aa0| 22 74 6f 22 40 43 6f 72 | 65 53 74 61 67 65 29 3b |"to"@Cor|eStage);|
|00003ab0| 0d 0a 09 20 20 20 4c 61 | 73 74 43 6f 72 65 53 74 |... La|stCoreSt|
|00003ac0| 61 67 65 20 3d 20 43 6f | 72 65 53 74 61 67 65 3b |age = Co|reStage;|
|00003ad0| 0d 0a 20 20 20 20 20 20 | 20 73 77 69 74 63 68 28 |.. | switch(|
|00003ae0| 43 6f 72 65 53 74 61 67 | 65 29 0d 0a 20 20 20 20 |CoreStag|e).. |
|00003af0| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00003b00| 20 20 20 63 61 73 65 20 | 30 3a 0d 0a 20 20 20 20 | case |0:.. |
|00003b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 6f 77 65 | | Powe|
|00003b20| 72 43 6f 72 65 41 63 74 | 69 76 65 28 29 3b 0d 0a |rCoreAct|ive();..|
|00003b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b40| 62 72 65 61 6b 3b 0d 0a | 20 20 20 20 20 20 20 20 |break;..| |
|00003b50| 20 20 20 20 63 61 73 65 | 20 31 3a 0d 0a 20 20 20 | case| 1:.. |
|00003b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 6f 77 | | Pow|
|00003b70| 65 72 43 6f 72 65 44 65 | 73 74 72 6f 79 65 64 28 |erCoreDe|stroyed(|
|00003b80| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00003b90| 20 20 20 20 62 72 65 61 | 6b 3b 0d 0a 20 20 20 20 | brea|k;.. |
|00003ba0| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 32 3a 0d | |case 2:.|
|00003bb0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003bc0| 20 50 6f 77 65 72 43 6f | 72 65 43 6f 6e 73 74 72 | PowerCo|reConstr|
|00003bd0| 75 63 74 69 6e 67 28 29 | 3b 0d 0a 20 20 20 20 20 |ucting()|;.. |
|00003be0| 20 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b | | break|
|00003bf0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |;.. | c|
|00003c00| 61 73 65 20 33 3a 0d 0a | 20 20 20 20 20 20 20 20 |ase 3:..| |
|00003c10| 20 20 20 20 20 20 20 20 | 50 6f 77 65 72 43 6f 72 | |PowerCor|
|00003c20| 65 52 65 73 65 74 28 29 | 3b 0d 0a 20 20 20 20 20 |eReset()|;.. |
|00003c30| 20 20 20 20 20 20 20 20 | 20 20 20 62 72 65 61 6b | | break|
|00003c40| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |;.. | c|
|00003c50| 61 73 65 20 34 3a 0d 0a | 20 20 20 20 20 20 20 20 |ase 4:..| |
|00003c60| 20 20 20 20 20 20 20 20 | 50 6f 77 65 72 43 6f 72 | |PowerCor|
|00003c70| 65 4e 65 75 74 72 61 6c | 28 29 3b 0d 0a 20 20 20 |eNeutral|();.. |
|00003c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 | | bre|
|00003c90| 61 6b 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ak;.. | |
|00003ca0| 20 63 61 73 65 20 35 3a | 0d 0a 20 20 20 20 20 20 | case 5:|.. |
|00003cb0| 20 20 20 20 20 20 20 20 | 20 20 50 6f 77 65 72 43 | | PowerC|
|00003cc0| 6f 72 65 52 65 63 6f 6e | 73 74 69 74 75 74 69 6f |oreRecon|stitutio|
|00003cd0| 6e 28 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |n();.. | |
|00003ce0| 20 20 09 62 72 65 61 6b | 3b 0d 0a 20 20 20 20 20 | .break|;.. |
|00003cf0| 20 20 20 20 20 20 20 63 | 61 73 65 20 32 35 35 3a | c|ase 255:|
|00003d00| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 09 50 |.. | .P|
|00003d10| 6f 77 65 72 43 6f 72 65 | 44 69 73 61 62 6c 65 64 |owerCore|Disabled|
|00003d20| 28 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |();.. | |
|00003d30| 20 09 62 72 65 61 6b 3b | 0d 0a 20 20 20 20 20 20 | .break;|.. |
|00003d40| 20 20 7d 0d 0a 2f 2f 20 | 20 20 20 20 20 20 20 55 | }..// | U|
|00003d50| 70 64 61 74 65 4c 69 6e | 6b 53 74 61 74 65 28 53 |pdateLin|kState(S|
|00003d60| 65 6c 66 29 3b 0d 0a 20 | 20 20 20 7d 0d 0a 0d 0a |elf);.. | }....|
|00003d70| 20 20 20 20 69 66 20 28 | 62 55 6e 64 65 72 41 74 | if (|bUnderAt|
|00003d80| 74 61 63 6b 20 21 3d 20 | 62 4f 6c 64 55 6e 64 65 |tack != |bOldUnde|
|00003d90| 72 41 74 74 61 63 6b 29 | 0d 0a 20 20 20 20 7b 0d |rAttack)|.. {.|
|00003da0| 0a 2f 2f 20 20 20 20 09 | 6c 6f 67 28 4e 61 6d 65 |.// .|log(Name|
|00003db0| 40 22 55 6e 64 65 72 41 | 74 74 61 63 6b 43 68 61 |@"UnderA|ttackCha|
|00003dc0| 6e 67 65 64 20 74 6f 22 | 40 62 55 6e 64 65 72 41 |nged to"|@bUnderA|
|00003dd0| 74 74 61 63 6b 29 3b 0d | 0a 20 20 20 20 20 20 20 |ttack);.|. |
|00003de0| 20 55 6e 64 65 72 41 74 | 74 61 63 6b 43 68 61 6e | UnderAt|tackChan|
|00003df0| 67 65 28 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 62 |ge();.. | b|
|00003e00| 4f 6c 64 55 6e 64 65 72 | 41 74 74 61 63 6b 20 3d |OldUnder|Attack =|
|00003e10| 20 62 55 6e 64 65 72 41 | 74 74 61 63 6b 3b 0d 0a | bUnderA|ttack;..|
|00003e20| 20 20 20 20 7d 0d 0a 0d | 0a 20 20 20 20 69 66 20 | }...|. if |
|00003e30| 28 20 44 65 66 65 6e 64 | 65 72 54 65 61 6d 49 6e |( Defend|erTeamIn|
|00003e40| 64 65 78 20 21 3d 20 4c | 61 73 74 44 65 66 65 6e |dex != L|astDefen|
|00003e50| 64 65 72 54 65 61 6d 49 | 6e 64 65 78 20 29 0d 0a |derTeamI|ndex )..|
|00003e60| 20 20 20 20 7b 0d 0a 2f | 2f 20 20 20 20 09 6c 6f | {../|/ .lo|
|00003e70| 67 28 4e 61 6d 65 40 22 | 44 65 66 65 6e 64 65 72 |g(Name@"|Defender|
|00003e80| 54 65 61 6d 49 6e 64 65 | 78 20 63 68 61 6e 67 65 |TeamInde|x change|
|00003e90| 64 20 66 72 6f 6d 20 22 | 24 4c 61 73 74 44 65 66 |d from "|$LastDef|
|00003ea0| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 40 22 |enderTea|mIndex@"|
|00003eb0| 74 6f 22 40 44 65 66 65 | 6e 64 65 72 54 65 61 6d |to"@Defe|nderTeam|
|00003ec0| 49 6e 64 65 78 29 3b 0d | 0a 20 20 20 20 09 4c 61 |Index);.|. .La|
|00003ed0| 73 74 44 65 66 65 6e 64 | 65 72 54 65 61 6d 49 6e |stDefend|erTeamIn|
|00003ee0| 64 65 78 20 3d 20 44 65 | 66 65 6e 64 65 72 54 65 |dex = De|fenderTe|
|00003ef0| 61 6d 49 6e 64 65 78 3b | 0d 0a 20 20 20 20 09 55 |amIndex;|.. .U|
|00003f00| 70 64 61 74 65 4c 69 6e | 6b 53 74 61 74 65 28 53 |pdateLin|kState(S|
|00003f10| 65 6c 66 29 3b 0d 0a 20 | 20 20 20 7d 0d 0a 0d 0a |elf);.. | }....|
|00003f20| 20 20 20 20 43 68 65 63 | 6b 53 68 69 65 6c 64 28 | Chec|kShield(|
|00003f30| 29 3b 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |);..}...|.simulat|
|00003f40| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 4e 6f 74 69 |ed funct|ion Noti|
|00003f50| 66 79 4c 6f 63 61 6c 50 | 6c 61 79 65 72 54 65 61 |fyLocalP|layerTea|
|00003f60| 6d 52 65 63 65 69 76 65 | 64 28 29 0d 0a 7b 0d 0a |mReceive|d()..{..|
|00003f70| 09 43 68 65 63 6b 53 68 | 69 65 6c 64 28 29 3b 0d |.CheckSh|ield();.|
|00003f80| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00003f90| 66 75 6e 63 74 69 6f 6e | 20 55 6e 64 65 72 41 74 |function| UnderAt|
|00003fa0| 74 61 63 6b 43 68 61 6e | 67 65 28 29 0d 0a 7b 0d |tackChan|ge()..{.|
|00003fb0| 0a 20 20 20 20 69 66 20 | 28 4e 6f 64 65 42 65 61 |. if |(NodeBea|
|00003fc0| 6d 45 66 66 65 63 74 20 | 21 3d 20 4e 6f 6e 65 20 |mEffect |!= None |
|00003fd0| 26 26 20 4e 6f 64 65 42 | 65 61 6d 45 66 66 65 63 |&& NodeB|eamEffec|
|00003fe0| 74 2e 45 6d 69 74 74 65 | 72 73 5b 32 5d 20 21 3d |t.Emitte|rs[2] !=|
|00003ff0| 20 4e 6f 6e 65 29 0d 0a | 20 20 20 20 20 20 20 20 | None)..| |
|00004000| 4e 6f 64 65 42 65 61 6d | 45 66 66 65 63 74 2e 45 |NodeBeam|Effect.E|
|00004010| 6d 69 74 74 65 72 73 5b | 32 5d 2e 44 69 73 61 62 |mitters[|2].Disab|
|00004020| 6c 65 64 20 3d 20 21 62 | 55 6e 64 65 72 41 74 74 |led = !b|UnderAtt|
|00004030| 61 63 6b 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 20 48 69 |ack;..}.|...// Hi|
|00004040| 64 65 2f 55 6e 48 69 64 | 65 20 53 68 69 65 6c 64 |de/UnHid|e Shield|
|00004050| 20 45 66 66 65 63 74 0d | 0a 73 69 6d 75 6c 61 74 | Effect.|.simulat|
|00004060| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 43 68 65 63 |ed funct|ion Chec|
|00004070| 6b 53 68 69 65 6c 64 28 | 29 0d 0a 7b 0d 0a 09 6c |kShield(|)..{...l|
|00004080| 6f 63 61 6c 20 50 6c 61 | 79 65 72 43 6f 6e 74 72 |ocal Pla|yerContr|
|00004090| 6f 6c 6c 65 72 20 50 43 | 3b 0d 0a 0d 0a 09 55 70 |oller PC|;.....Up|
|000040a0| 64 61 74 65 4c 6f 63 61 | 74 69 6f 6e 4e 61 6d 65 |dateLoca|tionName|
|000040b0| 28 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 4e 6f 64 |();.....|if ( Nod|
|000040c0| 65 42 65 61 6d 45 66 66 | 65 63 74 20 21 3d 20 4e |eBeamEff|ect != N|
|000040d0| 6f 6e 65 20 29 0d 0a 09 | 09 4e 6f 64 65 42 65 61 |one )...|.NodeBea|
|000040e0| 6d 45 66 66 65 63 74 2e | 62 48 69 64 64 65 6e 20 |mEffect.|bHidden |
|000040f0| 3d 20 21 62 53 68 6f 77 | 4e 6f 64 65 42 65 61 6d |= !bShow|NodeBeam|
|00004100| 73 3b 0d 0a 0d 0a 20 20 | 20 20 69 66 20 28 4e 6f |s;.... | if (No|
|00004110| 64 65 42 65 61 6d 45 66 | 66 65 63 74 20 21 3d 20 |deBeamEf|fect != |
|00004120| 4e 6f 6e 65 20 26 26 20 | 28 43 6f 72 65 53 74 61 |None && |(CoreSta|
|00004130| 67 65 20 21 3d 20 30 20 | 7c 7c 20 28 4e 6f 64 65 |ge != 0 ||| (Node|
|00004140| 42 65 61 6d 45 66 66 65 | 63 74 2e 49 73 41 28 27 |BeamEffe|ct.IsA('|
|00004150| 4f 4e 53 4e 6f 64 65 42 | 65 61 6d 52 65 64 45 66 |ONSNodeB|eamRedEf|
|00004160| 66 65 63 74 27 29 20 26 | 26 20 44 65 66 65 6e 64 |fect') &|& Defend|
|00004170| 65 72 54 65 61 6d 49 6e | 64 65 78 20 3d 3d 20 31 |erTeamIn|dex == 1|
|00004180| 29 20 7c 7c 20 28 4e 6f | 64 65 42 65 61 6d 45 66 |) || (No|deBeamEf|
|00004190| 66 65 63 74 2e 49 73 41 | 28 27 4f 4e 53 4e 6f 64 |fect.IsA|('ONSNod|
|000041a0| 65 42 65 61 6d 42 6c 75 | 65 45 66 66 65 63 74 27 |eBeamBlu|eEffect'|
|000041b0| 29 20 26 26 20 44 65 66 | 65 6e 64 65 72 54 65 61 |) && Def|enderTea|
|000041c0| 6d 49 6e 64 65 78 20 3d | 3d 20 30 29 29 29 0d 0a |mIndex =|= 0)))..|
|000041d0| 20 20 20 20 20 20 20 20 | 4e 6f 64 65 42 65 61 6d | |NodeBeam|
|000041e0| 45 66 66 65 63 74 2e 44 | 65 73 74 72 6f 79 28 29 |Effect.D|estroy()|
|000041f0| 3b 0d 0a 0d 0a 09 69 66 | 20 28 50 6f 77 65 72 65 |;.....if| (Powere|
|00004200| 64 42 79 28 31 20 2d 20 | 44 65 66 65 6e 64 65 72 |dBy(1 - |Defender|
|00004210| 54 65 61 6d 49 6e 64 65 | 78 29 29 0d 0a 09 7b 0d |TeamInde|x))...{.|
|00004220| 0a 20 20 20 20 20 20 20 | 20 53 68 69 65 6c 64 2e |. | Shield.|
|00004230| 62 48 69 64 64 65 6e 20 | 3d 20 74 72 75 65 3b 0d |bHidden |= true;.|
|00004240| 0a 09 09 53 68 69 65 6c | 64 2e 53 65 74 43 6f 6c |...Shiel|d.SetCol|
|00004250| 6c 69 73 69 6f 6e 28 66 | 61 6c 73 65 29 3b 0d 0a |lision(f|alse);..|
|00004260| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 62 53 |.. | if (bS|
|00004270| 68 6f 77 4e 6f 64 65 42 | 65 61 6d 73 20 26 26 20 |howNodeB|eams && |
|00004280| 43 6f 72 65 53 74 61 67 | 65 20 3d 3d 20 30 20 26 |CoreStag|e == 0 &|
|00004290| 26 20 4e 6f 64 65 42 65 | 61 6d 45 66 66 65 63 74 |& NodeBe|amEffect|
|000042a0| 20 3d 3d 20 4e 6f 6e 65 | 29 0d 0a 20 20 20 20 20 | == None|).. |
|000042b0| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|000042c0| 20 20 69 66 20 28 44 65 | 66 65 6e 64 65 72 54 65 | if (De|fenderTe|
|000042d0| 61 6d 49 6e 64 65 78 20 | 3d 3d 20 30 29 0d 0a 20 |amIndex |== 0).. |
|000042e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4e | | N|
|000042f0| 6f 64 65 42 65 61 6d 45 | 66 66 65 63 74 20 3d 20 |odeBeamE|ffect = |
|00004300| 73 70 61 77 6e 28 63 6c | 61 73 73 27 4f 4e 53 4e |spawn(cl|ass'ONSN|
|00004310| 6f 64 65 42 65 61 6d 52 | 65 64 45 66 66 65 63 74 |odeBeamR|edEffect|
|00004320| 27 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |');.. | |
|00004330| 20 65 6c 73 65 0d 0a 20 | 20 20 20 20 20 20 20 20 | else.. | |
|00004340| 20 20 20 20 20 20 20 4e | 6f 64 65 42 65 61 6d 45 | N|odeBeamE|
|00004350| 66 66 65 63 74 20 3d 20 | 73 70 61 77 6e 28 63 6c |ffect = |spawn(cl|
|00004360| 61 73 73 27 4f 4e 53 4e | 6f 64 65 42 65 61 6d 42 |ass'ONSN|odeBeamB|
|00004370| 6c 75 65 45 66 66 65 63 | 74 27 29 3b 0d 0a 20 20 |lueEffec|t');.. |
|00004380| 20 20 20 20 20 20 7d 0d | 0a 09 7d 0d 0a 09 65 6c | }.|..}...el|
|00004390| 73 65 20 69 66 20 28 43 | 6f 72 65 53 74 61 67 65 |se if (C|oreStage|
|000043a0| 20 21 3d 20 30 20 26 26 | 20 43 6f 72 65 53 74 61 | != 0 &&| CoreSta|
|000043b0| 67 65 20 21 3d 20 32 29 | 0d 0a 20 20 20 20 7b 0d |ge != 2)|.. {.|
|000043c0| 0a 20 20 20 20 20 20 20 | 20 53 68 69 65 6c 64 2e |. | Shield.|
|000043d0| 62 48 69 64 64 65 6e 20 | 3d 20 74 72 75 65 3b 0d |bHidden |= true;.|
|000043e0| 0a 09 09 53 68 69 65 6c | 64 2e 53 65 74 43 6f 6c |...Shiel|d.SetCol|
|000043f0| 6c 69 73 69 6f 6e 28 66 | 61 6c 73 65 29 3b 0d 0a |lision(f|alse);..|
|00004400| 09 09 69 66 20 28 4e 6f | 64 65 42 65 61 6d 45 66 |..if (No|deBeamEf|
|00004410| 66 65 63 74 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 20 |fect != |None).. |
|00004420| 20 20 20 20 20 20 20 20 | 20 20 20 4e 6f 64 65 42 | | NodeB|
|00004430| 65 61 6d 45 66 66 65 63 | 74 2e 44 65 73 74 72 6f |eamEffec|t.Destro|
|00004440| 79 28 29 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 0d |y();...}|...else.|
|00004450| 0a 09 7b 0d 0a 09 09 53 | 68 69 65 6c 64 2e 62 48 |..{....S|hield.bH|
|00004460| 69 64 64 65 6e 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |idden = |false;..|
|00004470| 09 09 53 68 69 65 6c 64 | 2e 53 65 74 43 6f 6c 6c |..Shield|.SetColl|
|00004480| 69 73 69 6f 6e 28 74 72 | 75 65 29 3b 0d 0a 09 09 |ision(tr|ue);....|
|00004490| 53 68 69 65 6c 64 2e 53 | 65 74 54 65 61 6d 28 44 |Shield.S|etTeam(D|
|000044a0| 65 66 65 6e 64 65 72 54 | 65 61 6d 49 6e 64 65 78 |efenderT|eamIndex|
|000044b0| 29 3b 0d 0a 09 09 69 66 | 20 28 4e 6f 64 65 42 65 |);....if| (NodeBe|
|000044c0| 61 6d 45 66 66 65 63 74 | 20 21 3d 20 4e 6f 6e 65 |amEffect| != None|
|000044d0| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 4e |).. | N|
|000044e0| 6f 64 65 42 65 61 6d 45 | 66 66 65 63 74 2e 44 65 |odeBeamE|ffect.De|
|000044f0| 73 74 72 6f 79 28 29 3b | 0d 0a 09 7d 0d 0a 0d 0a |stroy();|...}....|
|00004500| 09 69 66 20 28 4c 65 76 | 65 6c 2e 4e 65 74 4d 6f |.if (Lev|el.NetMo|
|00004510| 64 65 20 3d 3d 20 4e 4d | 5f 44 65 64 69 63 61 74 |de == NM|_Dedicat|
|00004520| 65 64 53 65 72 76 65 72 | 20 7c 7c 20 43 6f 72 65 |edServer| || Core|
|00004530| 53 74 61 67 65 20 21 3d | 20 34 29 0d 0a 09 09 72 |Stage !=| 4)....r|
|00004540| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 50 43 20 3d 20 |eturn;..|...PC = |
|00004550| 4c 65 76 65 6c 2e 47 65 | 74 4c 6f 63 61 6c 50 6c |Level.Ge|tLocalPl|
|00004560| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 29 |ayerCont|roller()|
|00004570| 3b 0d 0a 09 69 66 20 28 | 50 43 20 3d 3d 20 4e 6f |;...if (|PC == No|
|00004580| 6e 65 20 7c 7c 20 50 43 | 2e 50 6c 61 79 65 72 52 |ne || PC|.PlayerR|
|00004590| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 20 3d |eplicati|onInfo =|
|000045a0| 3d 20 4e 6f 6e 65 20 7c | 7c 20 28 21 50 43 2e 50 |= None ||| (!PC.P|
|000045b0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000045c0| 49 6e 66 6f 2e 62 4f 6e | 6c 79 53 70 65 63 74 61 |Info.bOn|lySpecta|
|000045d0| 74 6f 72 20 26 26 20 50 | 43 2e 50 6c 61 79 65 72 |tor && P|C.Player|
|000045e0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000045f0| 54 65 61 6d 20 3d 3d 20 | 4e 6f 6e 65 29 29 0d 0a |Team == |None))..|
|00004600| 09 09 72 65 74 75 72 6e | 3b 0d 0a 0d 0a 09 69 66 |..return|;.....if|
|00004610| 20 28 50 6f 77 65 72 65 | 64 42 79 28 50 43 2e 47 | (Powere|dBy(PC.G|
|00004620| 65 74 54 65 61 6d 4e 75 | 6d 28 29 29 29 0d 0a 09 |etTeamNu|m()))...|
|00004630| 7b 0d 0a 09 09 69 66 20 | 28 52 6f 61 6d 69 6e 67 |{....if |(Roaming|
|00004640| 45 6e 65 72 67 79 20 3d | 3d 20 4e 6f 6e 65 29 0d |Energy =|= None).|
|00004650| 0a 09 09 20 20 20 20 20 | 20 20 20 52 6f 61 6d 69 |... | Roami|
|00004660| 6e 67 45 6e 65 72 67 79 | 20 3d 20 73 70 61 77 6e |ngEnergy| = spawn|
|00004670| 28 63 6c 61 73 73 27 4f | 4e 53 46 72 65 65 52 6f |(class'O|NSFreeRo|
|00004680| 61 6d 69 6e 67 45 6e 65 | 72 67 79 45 66 66 65 63 |amingEne|rgyEffec|
|00004690| 74 27 2c 73 65 6c 66 2c | 2c 20 4c 6f 63 61 74 69 |t',self,|, Locati|
|000046a0| 6f 6e 20 2b 20 76 65 63 | 74 28 30 2c 30 2c 33 30 |on + vec|t(0,0,30|
|000046b0| 29 20 2b 20 50 72 65 50 | 69 76 6f 74 20 2a 20 2d |) + PreP|ivot * -|
|000046c0| 32 29 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 20 69 |2);...}.|..else i|
|000046d0| 66 20 28 52 6f 61 6d 69 | 6e 67 45 6e 65 72 67 79 |f (Roami|ngEnergy|
|000046e0| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 7b 0d 0a 09 | != None|)...{...|
|000046f0| 09 52 6f 61 6d 69 6e 67 | 45 6e 65 72 67 79 2e 4b |.Roaming|Energy.K|
|00004700| 69 6c 6c 28 29 3b 0d 0a | 09 09 52 6f 61 6d 69 6e |ill();..|..Roamin|
|00004710| 67 45 6e 65 72 67 79 20 | 3d 20 4e 6f 6e 65 3b 0d |gEnergy |= None;.|
|00004720| 0a 09 7d 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |..}..}..|..simula|
|00004730| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 50 6f 77 |ted func|tion Pow|
|00004740| 65 72 43 6f 72 65 44 69 | 73 61 62 6c 65 64 28 29 |erCoreDi|sabled()|
|00004750| 0d 0a 7b 0d 0a 2f 2f 09 | 6c 6f 67 28 4e 61 6d 65 |..{..//.|log(Name|
|00004760| 40 22 50 6f 77 65 72 43 | 6f 72 65 44 69 73 61 62 |@"PowerC|oreDisab|
|00004770| 6c 65 64 22 29 3b 0d 0a | 20 20 20 20 62 48 69 64 |led");..| bHid|
|00004780| 64 65 6e 20 3d 20 54 72 | 75 65 3b 0d 0a 20 20 20 |den = Tr|ue;.. |
|00004790| 20 62 50 6f 77 65 72 65 | 64 20 3d 20 46 61 6c 73 | bPowere|d = Fals|
|000047a0| 65 3b 0d 0a 0d 0a 20 20 | 20 20 69 66 20 28 52 6f |e;.... | if (Ro|
|000047b0| 61 6d 69 6e 67 45 6e 65 | 72 67 79 20 21 3d 20 4e |amingEne|rgy != N|
|000047c0| 6f 6e 65 29 0d 0a 20 20 | 20 20 20 20 20 20 52 6f |one).. | Ro|
|000047d0| 61 6d 69 6e 67 45 6e 65 | 72 67 79 2e 44 65 73 74 |amingEne|rgy.Dest|
|000047e0| 72 6f 79 28 29 3b 0d 0a | 0d 0a 20 20 20 20 43 68 |roy();..|.. Ch|
|000047f0| 65 63 6b 53 68 69 65 6c | 64 28 29 3b 0d 0a 0d 0a |eckShiel|d();....|
|00004800| 20 20 20 20 55 70 64 61 | 74 65 4c 69 6e 6b 53 74 | Upda|teLinkSt|
|00004810| 61 74 65 28 53 65 6c 66 | 29 3b 0d 0a 7d 0d 0a 0d |ate(Self|);..}...|
|00004820| 0a 73 69 6d 75 6c 61 74 | 65 64 20 66 75 6e 63 74 |.simulat|ed funct|
|00004830| 69 6f 6e 20 50 6f 77 65 | 72 43 6f 72 65 4e 65 75 |ion Powe|rCoreNeu|
|00004840| 74 72 61 6c 28 29 0d 0a | 7b 0d 0a 20 20 20 20 41 |tral()..|{.. A|
|00004850| 6d 62 69 65 6e 74 53 6f | 75 6e 64 20 3d 20 4e 65 |mbientSo|und = Ne|
|00004860| 75 74 72 61 6c 53 6f 75 | 6e 64 3b 0d 0a 0d 0a 2f |utralSou|nd;..../|
|00004870| 2f 09 6c 6f 67 28 4e 61 | 6d 65 40 22 50 6f 77 65 |/.log(Na|me@"Powe|
|00004880| 72 43 6f 72 65 4e 65 75 | 74 72 61 6c 22 29 3b 0d |rCoreNeu|tral");.|
|00004890| 0a 20 20 20 20 48 65 61 | 6c 74 68 20 3d 20 30 3b |. Hea|lth = 0;|
|000048a0| 0d 0a 20 20 20 20 62 50 | 6f 77 65 72 65 64 20 3d |.. bP|owered =|
|000048b0| 20 46 61 6c 73 65 3b 0d | 0a 20 20 20 20 44 65 66 | False;.|. Def|
|000048c0| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 20 3d |enderTea|mIndex =|
|000048d0| 20 32 3b 0d 0a 09 4e 65 | 74 55 70 64 61 74 65 54 | 2;...Ne|tUpdateT|
|000048e0| 69 6d 65 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |ime = Le|vel.Time|
|000048f0| 53 65 63 6f 6e 64 73 20 | 2d 20 31 3b 0d 0a 0d 0a |Seconds |- 1;....|
|00004900| 20 20 20 20 69 66 20 28 | 4c 65 76 65 6c 2e 4e 65 | if (|Level.Ne|
|00004910| 74 4d 6f 64 65 20 21 3d | 20 4e 4d 5f 44 65 64 69 |tMode !=| NM_Dedi|
|00004920| 63 61 74 65 64 53 65 72 | 76 65 72 29 0d 0a 20 20 |catedSer|ver).. |
|00004930| 20 20 20 20 20 20 55 70 | 64 61 74 65 54 65 61 6d | Up|dateTeam|
|00004940| 42 61 6e 6e 65 72 73 28 | 29 3b 0d 0a 0d 0a 20 20 |Banners(|);.... |
|00004950| 20 20 69 66 20 28 52 6f | 6c 65 20 3d 3d 20 52 4f | if (Ro|le == RO|
|00004960| 4c 45 5f 41 75 74 68 6f | 72 69 74 79 29 0d 0a 20 |LE_Autho|rity).. |
|00004970| 20 20 20 7b 0d 0a 20 20 | 20 20 09 4e 65 74 55 70 | {.. | .NetUp|
|00004980| 64 61 74 65 54 69 6d 65 | 20 3d 20 4c 65 76 65 6c |dateTime| = Level|
|00004990| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2d 20 31 |.TimeSec|onds - 1|
|000049a0| 3b 0d 0a 09 20 20 20 09 | 4e 6f 74 69 66 79 55 70 |;... .|NotifyUp|
|000049b0| 64 61 74 65 4c 69 6e 6b | 73 28 29 3b 0d 0a 09 7d |dateLink|s();...}|
|000049c0| 0d 0a 0d 0a 09 55 70 64 | 61 74 65 4c 69 6e 6b 53 |.....Upd|ateLinkS|
|000049d0| 74 61 74 65 28 53 65 6c | 66 29 3b 0d 0a 7d 0d 0a |tate(Sel|f);..}..|
|000049e0| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|000049f0| 74 69 6f 6e 20 50 6f 77 | 65 72 43 6f 72 65 52 65 |tion Pow|erCoreRe|
|00004a00| 63 6f 6e 73 74 69 74 75 | 74 69 6f 6e 28 29 0d 0a |constitu|tion()..|
|00004a10| 7b 0d 0a 20 20 20 20 69 | 66 20 28 4c 65 76 65 6c |{.. i|f (Level|
|00004a20| 2e 4e 65 74 4d 6f 64 65 | 20 21 3d 20 4e 4d 5f 44 |.NetMode| != NM_D|
|00004a30| 65 64 69 63 61 74 65 64 | 53 65 72 76 65 72 29 0d |edicated|Server).|
|00004a40| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 09 69 66 20 |. {..| .if |
|00004a50| 28 52 6f 61 6d 69 6e 67 | 45 6e 65 72 67 79 20 21 |(Roaming|Energy !|
|00004a60| 3d 20 4e 6f 6e 65 29 0d | 0a 09 20 20 20 20 52 6f |= None).|.. Ro|
|00004a70| 61 6d 69 6e 67 45 6e 65 | 72 67 79 2e 44 65 73 74 |amingEne|rgy.Dest|
|00004a80| 72 6f 79 28 29 3b 0d 0a | 0d 0a 20 20 20 20 20 20 |roy();..|.. |
|00004a90| 20 20 69 66 20 28 44 65 | 66 65 6e 64 65 72 54 65 | if (De|fenderTe|
|00004aa0| 61 6d 49 6e 64 65 78 20 | 3d 3d 20 30 29 0d 0a 20 |amIndex |== 0).. |
|00004ab0| 20 20 20 20 20 20 20 20 | 20 20 20 53 70 61 77 6e | | Spawn|
|00004ac0| 28 63 6c 61 73 73 27 4f | 4e 53 52 65 64 45 6e 65 |(class'O|NSRedEne|
|00004ad0| 72 67 79 45 66 66 65 63 | 74 27 2c 73 65 6c 66 2c |rgyEffec|t',self,|
|00004ae0| 2c 20 4c 6f 63 61 74 69 | 6f 6e 20 2b 20 76 65 63 |, Locati|on + vec|
|00004af0| 74 28 30 2c 30 2c 2d 32 | 30 29 29 3b 0d 0a 20 20 |t(0,0,-2|0));.. |
|00004b00| 20 20 20 20 20 20 65 6c | 73 65 0d 0a 20 20 20 20 | el|se.. |
|00004b10| 20 20 20 20 20 20 20 20 | 53 70 61 77 6e 28 63 6c | |Spawn(cl|
|00004b20| 61 73 73 27 4f 4e 53 42 | 6c 75 65 45 6e 65 72 67 |ass'ONSB|lueEnerg|
|00004b30| 79 45 66 66 65 63 74 27 | 2c 73 65 6c 66 2c 2c 20 |yEffect'|,self,, |
|00004b40| 4c 6f 63 61 74 69 6f 6e | 20 2b 20 76 65 63 74 28 |Location| + vect(|
|00004b50| 30 2c 30 2c 2d 32 30 29 | 29 3b 0d 0a 20 20 20 20 |0,0,-20)|);.. |
|00004b60| 7d 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |}..}....|simulate|
|00004b70| 64 20 66 75 6e 63 74 69 | 6f 6e 20 50 6f 77 65 72 |d functi|on Power|
|00004b80| 43 6f 72 65 44 65 73 74 | 72 6f 79 65 64 28 29 0d |CoreDest|royed().|
|00004b90| 0a 7b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 50 6c |.{.. |local Pl|
|00004ba0| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 50 |ayerCont|roller P|
|00004bb0| 43 3b 0d 0a 0d 0a 20 20 | 20 20 41 6d 62 69 65 6e |C;.... | Ambien|
|00004bc0| 74 53 6f 75 6e 64 20 3d | 20 4e 6f 6e 65 3b 0d 0a |tSound =| None;..|
|00004bd0| 2f 2f 09 6c 6f 67 28 4e | 61 6d 65 40 22 50 6f 77 |//.log(N|ame@"Pow|
|00004be0| 65 72 43 6f 72 65 44 65 | 73 74 72 6f 79 65 64 22 |erCoreDe|stroyed"|
|00004bf0| 29 3b 0d 0a 20 20 20 20 | 48 65 61 6c 74 68 20 3d |);.. |Health =|
|00004c00| 20 30 3b 0d 0a 0d 0a 20 | 20 20 20 69 66 20 28 4c | 0;.... | if (L|
|00004c10| 65 76 65 6c 2e 4e 65 74 | 4d 6f 64 65 20 21 3d 20 |evel.Net|Mode != |
|00004c20| 4e 4d 5f 44 65 64 69 63 | 61 74 65 64 53 65 72 76 |NM_Dedic|atedServ|
|00004c30| 65 72 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |er).. | {.. |
|00004c40| 20 20 20 20 50 43 20 3d | 20 4c 65 76 65 6c 2e 47 | PC =| Level.G|
|00004c50| 65 74 4c 6f 63 61 6c 50 | 6c 61 79 65 72 43 6f 6e |etLocalP|layerCon|
|00004c60| 74 72 6f 6c 6c 65 72 28 | 29 3b 0d 0a 20 20 20 20 |troller(|);.. |
|00004c70| 20 20 20 20 69 66 20 28 | 50 43 20 21 3d 20 4e 6f | if (|PC != No|
|00004c80| 6e 65 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ne).. | |
|00004c90| 20 50 43 2e 43 6c 69 65 | 6e 74 50 6c 61 79 53 6f | PC.Clie|ntPlaySo|
|00004ca0| 75 6e 64 28 44 65 73 74 | 72 6f 79 65 64 53 6f 75 |und(Dest|royedSou|
|00004cb0| 6e 64 2c 20 46 61 6c 73 | 65 2c 20 32 2e 30 29 3b |nd, Fals|e, 2.0);|
|00004cc0| 0d 0a 20 20 20 20 20 20 | 20 20 65 6c 73 65 0d 0a |.. | else..|
|00004cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 50 6c 61 79 | | Play|
|00004ce0| 53 6f 75 6e 64 28 44 65 | 73 74 72 6f 79 65 64 53 |Sound(De|stroyedS|
|00004cf0| 6f 75 6e 64 2c 20 53 4c | 4f 54 5f 4d 69 73 63 2c |ound, SL|OT_Misc,|
|00004d00| 20 35 2e 30 29 3b 0d 0a | 0d 0a 20 20 20 20 20 20 | 5.0);..|.. |
|00004d10| 20 20 45 78 70 6c 6f 73 | 69 6f 6e 45 66 66 65 63 | Explos|ionEffec|
|00004d20| 74 20 3d 20 73 70 61 77 | 6e 28 63 6c 61 73 73 27 |t = spaw|n(class'|
|00004d30| 4f 4e 53 50 6f 77 65 72 | 43 6f 72 65 42 72 65 61 |ONSPower|CoreBrea|
|00004d40| 63 68 45 66 66 65 63 74 | 27 2c 20 73 65 6c 66 29 |chEffect|', self)|
|00004d50| 3b 0d 0a 20 20 20 20 20 | 20 20 20 53 6b 69 6e 73 |;.. | Skins|
|00004d60| 2e 6c 65 6e 67 74 68 20 | 3d 20 30 3b 0d 0a 20 20 |.length |= 0;.. |
|00004d70| 20 20 7d 0d 0a 0d 0a 20 | 20 20 20 69 66 20 28 52 | }.... | if (R|
|00004d80| 6f 6c 65 20 3d 3d 20 52 | 4f 4c 45 5f 41 75 74 68 |ole == R|OLE_Auth|
|00004d90| 6f 72 69 74 79 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |ority)..| {.. |
|00004da0| 20 20 20 20 20 20 20 4e | 65 74 55 70 64 61 74 65 | N|etUpdate|
|00004db0| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|00004dc0| 65 53 65 63 6f 6e 64 73 | 20 2d 20 31 3b 0d 0a 20 |eSeconds| - 1;.. |
|00004dd0| 20 20 20 20 20 20 20 53 | 63 6f 72 65 72 73 2e 6c | S|corers.l|
|00004de0| 65 6e 67 74 68 20 3d 20 | 30 3b 0d 0a 20 20 20 20 |ength = |0;.. |
|00004df0| 20 20 20 20 55 70 64 61 | 74 65 43 6c 6f 73 65 41 | Upda|teCloseA|
|00004e00| 63 74 6f 72 73 28 29 3b | 0d 0a 20 20 20 20 20 20 |ctors();|.. |
|00004e10| 20 20 4f 6e 43 6f 72 65 | 44 65 73 74 72 6f 79 65 | OnCore|Destroye|
|00004e20| 64 28 44 65 66 65 6e 64 | 65 72 54 65 61 6d 49 6e |d(Defend|erTeamIn|
|00004e30| 64 65 78 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 4e |dex);.. | N|
|00004e40| 6f 74 69 66 79 55 70 64 | 61 74 65 4c 69 6e 6b 73 |otifyUpd|ateLinks|
|00004e50| 28 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 44 65 66 |();.. | Def|
|00004e60| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 20 3d |enderTea|mIndex =|
|00004e70| 20 32 3b 0d 0a 20 20 20 | 20 20 20 20 20 47 6f 74 | 2;.. | Got|
|00004e80| 6f 53 74 61 74 65 28 27 | 44 65 73 74 72 6f 79 65 |oState('|Destroye|
|00004e90| 64 43 6f 72 65 27 29 3b | 0d 0a 20 20 20 20 7d 0d |dCore');|.. }.|
|00004ea0| 0a 0d 0a 09 55 70 64 61 | 74 65 4c 69 6e 6b 53 74 |....Upda|teLinkSt|
|00004eb0| 61 74 65 28 53 65 6c 66 | 29 3b 0d 0a 7d 0d 0a 0d |ate(Self|);..}...|
|00004ec0| 0a 66 75 6e 63 74 69 6f | 6e 20 55 70 64 61 74 65 |.functio|n Update|
|00004ed0| 43 6c 6f 73 65 41 63 74 | 6f 72 73 28 29 0d 0a 7b |CloseAct|ors()..{|
|00004ee0| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 69 6e 74 20 |.. lo|cal int |
|00004ef0| 69 3b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 41 63 |i;.. |local Ac|
|00004f00| 74 6f 72 20 41 3b 0d 0a | 20 20 20 20 6c 6f 63 61 |tor A;..| loca|
|00004f10| 6c 20 4f 4e 53 56 65 68 | 69 63 6c 65 20 56 3b 0d |l ONSVeh|icle V;.|
|00004f20| 0a 0d 0a 20 20 20 20 66 | 6f 72 20 28 69 20 3d 20 |... f|or (i = |
|00004f30| 30 3b 20 69 20 3c 20 43 | 6c 6f 73 65 41 63 74 6f |0; i < C|loseActo|
|00004f40| 72 73 2e 4c 65 6e 67 74 | 68 3b 20 69 2b 2b 29 0d |rs.Lengt|h; i++).|
|00004f50| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |. {..| |
|00004f60| 41 20 3d 20 43 6c 6f 73 | 65 41 63 74 6f 72 73 5b |A = Clos|eActors[|
|00004f70| 69 5d 3b 0d 0a 20 20 20 | 20 20 20 20 20 2f 2f 20 |i];.. | // |
|00004f80| 44 69 73 61 62 6c 65 20 | 61 6e 79 20 70 6c 61 79 |Disable |any play|
|00004f90| 65 72 73 74 61 72 74 73 | 20 69 6e 20 74 68 65 20 |erstarts| in the |
|00004fa0| 70 6f 77 65 72 20 72 61 | 64 69 75 73 0d 0a 20 20 |power ra|dius.. |
|00004fb0| 20 20 20 20 20 20 69 66 | 20 28 41 2e 49 73 41 28 | if| (A.IsA(|
|00004fc0| 27 50 6c 61 79 65 72 53 | 74 61 72 74 27 29 29 0d |'PlayerS|tart')).|
|00004fd0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 50 6c 61 |. | Pla|
|00004fe0| 79 65 72 53 74 61 72 74 | 28 41 29 2e 62 45 6e 61 |yerStart|(A).bEna|
|00004ff0| 62 6c 65 64 20 3d 20 46 | 61 6c 73 65 3b 0d 0a 0d |bled = F|alse;...|
|00005000| 0a 20 20 20 20 20 20 20 | 20 2f 2f 20 44 69 73 61 |. | // Disa|
|00005010| 62 6c 65 20 61 6e 79 20 | 76 65 68 69 63 6c 65 20 |ble any |vehicle |
|00005020| 66 61 63 74 6f 72 69 65 | 73 20 69 6e 20 74 68 65 |factorie|s in the|
|00005030| 20 70 6f 77 65 72 20 72 | 61 64 69 75 73 0d 0a 20 | power r|adius.. |
|00005040| 20 20 20 20 20 20 20 69 | 66 20 28 41 2e 49 73 41 | i|f (A.IsA|
|00005050| 28 27 4f 4e 53 56 65 68 | 69 63 6c 65 46 61 63 74 |('ONSVeh|icleFact|
|00005060| 6f 72 79 27 29 29 0d 0a | 20 20 20 20 20 20 20 20 |ory'))..| |
|00005070| 20 20 20 20 4f 4e 53 56 | 65 68 69 63 6c 65 46 61 | ONSV|ehicleFa|
|00005080| 63 74 6f 72 79 28 41 29 | 2e 44 65 61 63 74 69 76 |ctory(A)|.Deactiv|
|00005090| 61 74 65 28 29 3b 0d 0a | 0d 0a 20 20 20 20 20 20 |ate();..|.. |
|000050a0| 20 20 2f 2f 20 44 69 73 | 61 62 6c 65 20 61 6e 79 | // Dis|able any|
|000050b0| 20 74 75 72 72 65 74 73 | 20 69 6e 20 74 68 65 20 | turrets| in the |
|000050c0| 70 6f 77 65 72 20 72 61 | 64 69 75 73 0d 0a 20 20 |power ra|dius.. |
|000050d0| 20 20 20 20 20 20 69 66 | 20 28 41 2e 49 73 41 28 | if| (A.IsA(|
|000050e0| 27 4f 4e 53 53 74 61 74 | 69 6f 6e 61 72 79 57 65 |'ONSStat|ionaryWe|
|000050f0| 61 70 6f 6e 50 61 77 6e | 27 29 20 26 26 20 21 62 |aponPawn|') && !b|
|00005100| 46 69 6e 61 6c 43 6f 72 | 65 29 0d 0a 20 20 20 20 |FinalCor|e).. |
|00005110| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00005120| 20 20 20 4f 4e 53 53 74 | 61 74 69 6f 6e 61 72 79 | ONSSt|ationary|
|00005130| 57 65 61 70 6f 6e 50 61 | 77 6e 28 41 29 2e 62 50 |WeaponPa|wn(A).bP|
|00005140| 6f 77 65 72 65 64 20 3d | 20 46 61 6c 73 65 3b 0d |owered =| False;.|
|00005150| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 4f 4e 53 |. | ONS|
|00005160| 53 74 61 74 69 6f 6e 61 | 72 79 57 65 61 70 6f 6e |Stationa|ryWeapon|
|00005170| 50 61 77 6e 28 41 29 2e | 4b 44 72 69 76 65 72 4c |Pawn(A).|KDriverL|
|00005180| 65 61 76 65 28 54 72 75 | 65 29 3b 0d 0a 20 20 20 |eave(Tru|e);.. |
|00005190| 20 20 20 20 20 20 20 20 | 20 4f 4e 53 53 74 61 74 | | ONSStat|
|000051a0| 69 6f 6e 61 72 79 57 65 | 61 70 6f 6e 50 61 77 6e |ionaryWe|aponPawn|
|000051b0| 28 41 29 2e 54 65 61 6d | 20 3d 20 32 35 35 3b 0d |(A).Team| = 255;.|
|000051c0| 0a 20 20 20 20 20 20 20 | 20 7d 0d 0a 20 20 20 20 |. | }.. |
|000051d0| 7d 0d 0a 20 20 20 20 66 | 6f 72 65 61 63 68 20 44 |}.. f|oreach D|
|000051e0| 79 6e 61 6d 69 63 41 63 | 74 6f 72 73 28 63 6c 61 |ynamicAc|tors(cla|
|000051f0| 73 73 27 4f 4e 53 56 65 | 68 69 63 6c 65 27 2c 20 |ss'ONSVe|hicle', |
|00005200| 56 29 0d 0a 20 20 20 20 | 20 20 20 20 69 66 20 28 |V).. | if (|
|00005210| 56 2e 62 54 65 61 6d 4c | 6f 63 6b 65 64 20 26 26 |V.bTeamL|ocked &&|
|00005220| 20 56 2e 48 65 61 6c 74 | 68 20 3e 20 30 20 26 26 | V.Healt|h > 0 &&|
|00005230| 20 43 6c 6f 73 65 73 74 | 54 6f 28 56 29 20 3d 3d | Closest|To(V) ==|
|00005240| 20 73 65 6c 66 29 0d 0a | 20 20 20 20 20 20 20 20 | self)..| |
|00005250| 20 20 20 20 56 2e 44 65 | 73 74 72 6f 79 28 29 3b | V.De|stroy();|
|00005260| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00005270| 20 66 75 6e 63 74 69 6f | 6e 20 50 6f 77 65 72 43 | functio|n PowerC|
|00005280| 6f 72 65 43 6f 6e 73 74 | 72 75 63 74 69 6e 67 28 |oreConst|ructing(|
|00005290| 29 0d 0a 7b 0d 0a 2f 2f | 09 6c 6f 67 28 4e 61 6d |)..{..//|.log(Nam|
|000052a0| 65 40 22 50 6f 77 65 72 | 43 6f 72 65 43 6f 6e 73 |e@"Power|CoreCons|
|000052b0| 74 72 75 63 74 69 6e 67 | 22 29 3b 0d 0a 20 20 20 |tructing|");.. |
|000052c0| 20 41 6d 62 69 65 6e 74 | 53 6f 75 6e 64 20 3d 20 | Ambient|Sound = |
|000052d0| 48 65 61 6c 69 6e 67 53 | 6f 75 6e 64 3b 0d 0a 20 |HealingS|ound;.. |
|000052e0| 20 20 20 69 66 20 28 4c | 65 76 65 6c 2e 4e 65 74 | if (L|evel.Net|
|000052f0| 4d 6f 64 65 20 21 3d 20 | 4e 4d 5f 44 65 64 69 63 |Mode != |NM_Dedic|
|00005300| 61 74 65 64 53 65 72 76 | 65 72 29 0d 0a 20 20 20 |atedServ|er).. |
|00005310| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 69 66 20 28 | {.. | if (|
|00005320| 44 65 66 65 6e 64 65 72 | 54 65 61 6d 49 6e 64 65 |Defender|TeamInde|
|00005330| 78 20 3d 3d 20 30 29 0d | 0a 20 20 20 20 20 20 20 |x == 0).|. |
|00005340| 20 20 20 20 20 53 6b 69 | 6e 73 20 3d 20 52 65 64 | Ski|ns = Red|
|00005350| 43 6f 6e 73 74 72 75 63 | 74 69 6e 67 53 6b 69 6e |Construc|tingSkin|
|00005360| 73 3b 0d 0a 20 20 20 20 | 20 20 20 20 65 6c 73 65 |s;.. | else|
|00005370| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 53 6b |.. | Sk|
|00005380| 69 6e 73 20 3d 20 42 6c | 75 65 43 6f 6e 73 74 72 |ins = Bl|ueConstr|
|00005390| 75 63 74 69 6e 67 53 6b | 69 6e 73 3b 0d 0a 0d 0a |uctingSk|ins;....|
|000053a0| 20 20 20 20 09 2f 2f 20 | 55 70 64 61 74 65 20 73 | .// |Update s|
|000053b0| 68 69 65 6c 64 0d 0a 20 | 20 20 20 20 20 20 09 53 |hield.. | .S|
|000053c0| 68 69 65 6c 64 2e 53 65 | 74 54 65 61 6d 28 44 65 |hield.Se|tTeam(De|
|000053d0| 66 65 6e 64 65 72 54 65 | 61 6d 49 6e 64 65 78 29 |fenderTe|amIndex)|
|000053e0| 3b 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 55 70 64 |;.... | Upd|
|000053f0| 61 74 65 54 65 61 6d 42 | 61 6e 6e 65 72 73 28 29 |ateTeamB|anners()|
|00005400| 3b 0d 0a 20 20 20 20 7d | 0d 0a 20 20 20 20 62 48 |;.. }|.. bH|
|00005410| 69 64 64 65 6e 20 3d 20 | 46 61 6c 73 65 3b 0d 0a |idden = |False;..|
|00005420| 0d 0a 20 20 20 20 2f 2f | 20 55 70 64 61 74 65 20 |.. //| Update |
|00005430| 4c 69 6e 6b 73 0d 0a 20 | 20 20 20 4e 6f 74 69 66 |Links.. | Notif|
|00005440| 79 55 70 64 61 74 65 4c | 69 6e 6b 73 28 29 3b 0d |yUpdateL|inks();.|
|00005450| 0a 09 55 70 64 61 74 65 | 4c 69 6e 6b 53 74 61 74 |..Update|LinkStat|
|00005460| 65 28 53 65 6c 66 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |e(Self);|..}....s|
|00005470| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00005480| 6e 20 50 6f 77 65 72 43 | 6f 72 65 41 63 74 69 76 |n PowerC|oreActiv|
|00005490| 65 28 29 0d 0a 7b 0d 0a | 20 20 20 20 6c 6f 63 61 |e()..{..| loca|
|000054a0| 6c 20 41 63 74 6f 72 20 | 41 3b 0d 0a 20 20 20 20 |l Actor |A;.. |
|000054b0| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|000054c0| 20 20 20 20 62 48 69 64 | 64 65 6e 20 3d 20 46 61 | bHid|den = Fa|
|000054d0| 6c 73 65 3b 0d 0a 20 20 | 20 20 41 6d 62 69 65 6e |lse;.. | Ambien|
|000054e0| 74 53 6f 75 6e 64 20 3d | 20 41 63 74 69 76 65 53 |tSound =| ActiveS|
|000054f0| 6f 75 6e 64 3b 0d 0a 0d | 0a 09 2f 2f 6c 6f 67 28 |ound;...|..//log(|
|00005500| 4e 61 6d 65 40 22 50 6f | 77 65 72 43 6f 72 65 41 |Name@"Po|werCoreA|
|00005510| 63 74 69 76 65 22 29 3b | 0d 0a 20 20 20 20 2f 2f |ctive");|.. //|
|00005520| 20 55 70 64 61 74 65 20 | 56 69 73 75 61 6c 73 0d | Update |Visuals.|
|00005530| 0a 20 20 20 20 69 66 20 | 28 4c 65 76 65 6c 2e 4e |. if |(Level.N|
|00005540| 65 74 4d 6f 64 65 20 21 | 3d 20 4e 4d 5f 44 65 64 |etMode !|= NM_Ded|
|00005550| 69 63 61 74 65 64 53 65 | 72 76 65 72 29 0d 0a 20 |icatedSe|rver).. |
|00005560| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 69 66 | {.. | if|
|00005570| 20 28 52 6f 61 6d 69 6e | 67 45 6e 65 72 67 79 20 | (Roamin|gEnergy |
|00005580| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 20 20 20 20 20 20 |!= None)|.. |
|00005590| 20 20 20 20 20 20 52 6f | 61 6d 69 6e 67 45 6e 65 | Ro|amingEne|
|000055a0| 72 67 79 2e 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |rgy.Dest|roy();..|
|000055b0| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 45 78 |.. | if (Ex|
|000055c0| 70 6c 6f 73 69 6f 6e 45 | 66 66 65 63 74 20 21 3d |plosionE|ffect !=|
|000055d0| 20 4e 6f 6e 65 29 0d 0a | 20 20 20 20 20 20 20 20 | None)..| |
|000055e0| 20 20 20 20 45 78 70 6c | 6f 73 69 6f 6e 45 66 66 | Expl|osionEff|
|000055f0| 65 63 74 2e 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |ect.Dest|roy();..|
|00005600| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 44 65 |.. | if (De|
|00005610| 66 65 6e 64 65 72 54 65 | 61 6d 49 6e 64 65 78 20 |fenderTe|amIndex |
|00005620| 3d 3d 20 30 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |== 0).. | |
|00005630| 20 20 20 53 6b 69 6e 73 | 20 3d 20 52 65 64 41 63 | Skins| = RedAc|
|00005640| 74 69 76 65 53 6b 69 6e | 73 3b 0d 0a 20 20 20 20 |tiveSkin|s;.. |
|00005650| 20 20 20 20 65 6c 73 65 | 0d 0a 20 20 20 20 20 20 | else|.. |
|00005660| 20 20 20 20 20 20 53 6b | 69 6e 73 20 3d 20 42 6c | Sk|ins = Bl|
|00005670| 75 65 41 63 74 69 76 65 | 53 6b 69 6e 73 3b 0d 0a |ueActive|Skins;..|
|00005680| 0d 0a 20 20 20 20 09 2f | 2f 20 55 70 64 61 74 65 |.. ./|/ Update|
|00005690| 20 73 68 69 65 6c 64 0d | 0a 20 20 20 20 09 69 66 | shield.|. .if|
|000056a0| 20 28 53 68 69 65 6c 64 | 20 21 3d 20 4e 6f 6e 65 | (Shield| != None|
|000056b0| 29 0d 0a 09 20 20 20 20 | 20 20 20 20 53 68 69 65 |)... | Shie|
|000056c0| 6c 64 2e 53 65 74 54 65 | 61 6d 28 44 65 66 65 6e |ld.SetTe|am(Defen|
|000056d0| 64 65 72 54 65 61 6d 49 | 6e 64 65 78 29 3b 0d 0a |derTeamI|ndex);..|
|000056e0| 0d 0a 20 20 20 20 20 20 | 20 20 55 70 64 61 74 65 |.. | Update|
|000056f0| 54 65 61 6d 42 61 6e 6e | 65 72 73 28 29 3b 0d 0a |TeamBann|ers();..|
|00005700| 0d 0a 09 09 50 6c 61 79 | 53 6f 75 6e 64 28 43 6f |....Play|Sound(Co|
|00005710| 6e 73 74 72 75 63 74 65 | 64 53 6f 75 6e 64 2c 20 |nstructe|dSound, |
|00005720| 53 4c 4f 54 5f 4d 69 73 | 63 2c 20 35 2e 30 29 3b |SLOT_Mis|c, 5.0);|
|00005730| 0d 0a 20 20 20 20 7d 0d | 0a 0d 0a 20 20 20 20 69 |.. }.|... i|
|00005740| 66 20 28 52 6f 6c 65 20 | 3d 3d 20 52 4f 4c 45 5f |f (Role |== ROLE_|
|00005750| 41 75 74 68 6f 72 69 74 | 79 29 0d 0a 20 20 20 20 |Authorit|y).. |
|00005760| 7b 0d 0a 09 20 20 20 20 | 4e 6f 74 69 66 79 55 70 |{... |NotifyUp|
|00005770| 64 61 74 65 4c 69 6e 6b | 73 28 29 3b 0d 0a 09 20 |dateLink|s();... |
|00005780| 20 20 20 53 63 6f 72 65 | 72 73 2e 6c 65 6e 67 74 | Score|rs.lengt|
|00005790| 68 20 3d 20 30 3b 0d 0a | 0d 0a 20 20 20 20 20 20 |h = 0;..|.. |
|000057a0| 20 20 2f 2f 20 55 70 64 | 61 74 65 20 4e 65 61 72 | // Upd|ate Near|
|000057b0| 62 79 20 50 6f 77 65 72 | 65 64 20 41 63 74 6f 72 |by Power|ed Actor|
|000057c0| 73 0d 0a 20 20 20 20 20 | 20 20 20 66 6f 72 20 28 |s.. | for (|
|000057d0| 69 20 3d 20 30 3b 20 69 | 20 3c 20 43 6c 6f 73 65 |i = 0; i| < Close|
|000057e0| 41 63 74 6f 72 73 2e 4c | 65 6e 67 74 68 3b 20 69 |Actors.L|ength; i|
|000057f0| 2b 2b 29 0d 0a 20 20 20 | 20 20 20 20 20 7b 0d 0a |++).. | {..|
|00005800| 20 20 20 20 20 20 20 20 | 20 20 20 20 41 20 3d 20 | | A = |
|00005810| 43 6c 6f 73 65 41 63 74 | 6f 72 73 5b 69 5d 3b 0d |CloseAct|ors[i];.|
|00005820| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 2f |... | /|
|00005830| 2f 20 55 70 64 61 74 65 | 20 61 6e 79 20 76 65 68 |/ Update| any veh|
|00005840| 69 63 6c 65 20 66 61 63 | 74 6f 72 69 65 73 20 69 |icle fac|tories i|
|00005850| 6e 20 74 68 65 20 70 6f | 77 65 72 20 72 61 64 69 |n the po|wer radi|
|00005860| 75 73 20 74 6f 20 62 65 | 20 6f 77 6e 65 64 20 62 |us to be| owned b|
|00005870| 79 20 74 68 65 20 63 6f | 6e 74 72 6f 6c 6c 69 6e |y the co|ntrollin|
|00005880| 67 20 74 65 61 6d 0d 0a | 20 20 20 20 20 20 20 20 |g team..| |
|00005890| 20 20 20 20 69 66 20 28 | 41 2e 49 73 41 28 27 4f | if (|A.IsA('O|
|000058a0| 4e 53 56 65 68 69 63 6c | 65 46 61 63 74 6f 72 79 |NSVehicl|eFactory|
|000058b0| 27 29 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |')).. | |
|000058c0| 20 20 20 20 20 4f 4e 53 | 56 65 68 69 63 6c 65 46 | ONS|VehicleF|
|000058d0| 61 63 74 6f 72 79 28 41 | 29 2e 41 63 74 69 76 61 |actory(A|).Activa|
|000058e0| 74 65 28 44 65 66 65 6e | 64 65 72 54 65 61 6d 49 |te(Defen|derTeamI|
|000058f0| 6e 64 65 78 29 3b 0d 0a | 0d 0a 20 20 20 20 20 20 |ndex);..|.. |
|00005900| 20 20 20 20 20 20 2f 2f | 20 55 70 64 61 74 65 20 | //| Update |
|00005910| 61 6e 79 20 70 6c 61 79 | 65 72 73 74 61 72 74 73 |any play|erstarts|
|00005920| 20 69 6e 20 74 68 65 20 | 70 6f 77 65 72 20 72 61 | in the |power ra|
|00005930| 64 69 75 73 20 74 6f 20 | 74 68 65 20 62 65 20 6f |dius to |the be o|
|00005940| 77 6e 65 64 20 62 79 20 | 74 68 65 20 63 6f 6e 74 |wned by |the cont|
|00005950| 72 6f 6c 6c 69 6e 67 20 | 74 65 61 6d 0d 0a 20 20 |rolling |team.. |
|00005960| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 41 2e | | if (A.|
|00005970| 49 73 41 28 27 50 6c 61 | 79 65 72 53 74 61 72 74 |IsA('Pla|yerStart|
|00005980| 27 29 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |')).. | |
|00005990| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|000059a0| 20 20 20 20 50 6c 61 79 | 65 72 53 74 61 72 74 28 | Play|erStart(|
|000059b0| 41 29 2e 54 65 61 6d 4e | 75 6d 62 65 72 20 3d 20 |A).TeamN|umber = |
|000059c0| 44 65 66 65 6e 64 65 72 | 54 65 61 6d 49 6e 64 65 |Defender|TeamInde|
|000059d0| 78 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |x;.. | |
|000059e0| 20 20 20 20 50 6c 61 79 | 65 72 53 74 61 72 74 28 | Play|erStart(|
|000059f0| 41 29 2e 62 45 6e 61 62 | 6c 65 64 20 3d 20 54 72 |A).bEnab|led = Tr|
|00005a00| 75 65 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ue;.. | |
|00005a10| 20 7d 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | }.... | |
|00005a20| 20 20 2f 2f 20 45 6e 61 | 62 6c 65 20 61 6e 79 20 | // Ena|ble any |
|00005a30| 74 75 72 72 65 74 73 20 | 69 6e 20 74 68 65 20 70 |turrets |in the p|
|00005a40| 6f 77 65 72 20 72 61 64 | 69 75 73 0d 0a 20 20 20 |ower rad|ius.. |
|00005a50| 20 20 20 20 20 20 20 20 | 20 49 66 20 28 41 2e 49 | | If (A.I|
|00005a60| 73 41 28 27 4f 4e 53 53 | 74 61 74 69 6f 6e 61 72 |sA('ONSS|tationar|
|00005a70| 79 57 65 61 70 6f 6e 50 | 61 77 6e 27 29 29 0d 0a |yWeaponP|awn'))..|
|00005a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 0d 0a 20 | | {.. |
|00005a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4f | | O|
|00005aa0| 4e 53 53 74 61 74 69 6f | 6e 61 72 79 57 65 61 70 |NSStatio|naryWeap|
|00005ab0| 6f 6e 50 61 77 6e 28 41 | 29 2e 62 50 6f 77 65 72 |onPawn(A|).bPower|
|00005ac0| 65 64 20 3d 20 54 72 75 | 65 3b 0d 0a 20 20 20 20 |ed = Tru|e;.. |
|00005ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 4f 4e 53 53 | | ONSS|
|00005ae0| 74 61 74 69 6f 6e 61 72 | 79 57 65 61 70 6f 6e 50 |tationar|yWeaponP|
|00005af0| 61 77 6e 28 41 29 2e 53 | 65 74 54 65 61 6d 4e 75 |awn(A).S|etTeamNu|
|00005b00| 6d 28 44 65 66 65 6e 64 | 65 72 54 65 61 6d 49 6e |m(Defend|erTeamIn|
|00005b10| 64 65 78 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |dex);.. | |
|00005b20| 20 20 20 20 20 20 20 4f | 4e 53 53 74 61 74 69 6f | O|NSStatio|
|00005b30| 6e 61 72 79 57 65 61 70 | 6f 6e 50 61 77 6e 28 41 |naryWeap|onPawn(A|
|00005b40| 29 2e 50 72 65 76 54 65 | 61 6d 20 3d 20 44 65 66 |).PrevTe|am = Def|
|00005b50| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 3b 0d |enderTea|mIndex;.|
|00005b60| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0d 0a |. | }..|
|00005b70| 20 20 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 20 7d | |}.. }|
|00005b80| 0d 0a 0d 0a 09 55 70 64 | 61 74 65 4c 69 6e 6b 53 |.....Upd|ateLinkS|
|00005b90| 74 61 74 65 28 53 65 6c | 66 29 3b 0d 0a 7d 0d 0a |tate(Sel|f);..}..|
|00005ba0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 52 65 73 65 74 |..functi|on Reset|
|00005bb0| 28 29 0d 0a 7b 0d 0a 09 | 48 65 61 6c 74 68 20 3d |()..{...|Health =|
|00005bc0| 20 44 61 6d 61 67 65 43 | 61 70 61 63 69 74 79 3b | DamageC|apacity;|
|00005bd0| 0d 0a 09 50 6f 77 65 72 | 43 6f 72 65 52 65 73 65 |...Power|CoreRese|
|00005be0| 74 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |t();..}.|...simul|
|00005bf0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 50 6f |ated fun|ction Po|
|00005c00| 77 65 72 43 6f 72 65 52 | 65 73 65 74 28 29 0d 0a |werCoreR|eset()..|
|00005c10| 7b 0d 0a 2f 2f 09 6c 6f | 67 28 4e 61 6d 65 40 22 |{..//.lo|g(Name@"|
|00005c20| 50 6f 77 65 72 43 6f 72 | 65 52 65 73 65 74 22 29 |PowerCor|eReset")|
|00005c30| 3b 0d 0a 09 69 66 20 28 | 52 6f 61 6d 69 6e 67 45 |;...if (|RoamingE|
|00005c40| 6e 65 72 67 79 20 21 3d | 20 4e 6f 6e 65 20 26 26 |nergy !=| None &&|
|00005c50| 20 62 53 63 72 69 70 74 | 49 6e 69 74 69 61 6c 69 | bScript|Initiali|
|00005c60| 7a 65 64 29 0d 0a 09 09 | 52 6f 61 6d 69 6e 67 45 |zed)....|RoamingE|
|00005c70| 6e 65 72 67 79 2e 44 65 | 73 74 72 6f 79 28 29 3b |nergy.De|stroy();|
|00005c80| 0d 0a 0d 0a 09 69 66 20 | 28 52 6f 6c 65 20 3d 3d |.....if |(Role ==|
|00005c90| 20 52 4f 4c 45 5f 41 75 | 74 68 6f 72 69 74 79 29 | ROLE_Au|thority)|
|00005ca0| 0d 0a 09 7b 0d 0a 09 09 | 53 65 74 53 74 61 74 69 |...{....|SetStati|
|00005cb0| 63 4d 65 73 68 28 64 65 | 66 61 75 6c 74 2e 53 74 |cMesh(de|fault.St|
|00005cc0| 61 74 69 63 4d 65 73 68 | 29 3b 0d 0a 09 09 55 70 |aticMesh|);....Up|
|00005cd0| 64 61 74 65 43 6c 6f 73 | 65 41 63 74 6f 72 73 28 |dateClos|eActors(|
|00005ce0| 29 3b 0d 0a 09 09 4e 65 | 74 55 70 64 61 74 65 54 |);....Ne|tUpdateT|
|00005cf0| 69 6d 65 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |ime = Le|vel.Time|
|00005d00| 53 65 63 6f 6e 64 73 20 | 2d 20 31 3b 0d 0a 09 09 |Seconds |- 1;....|
|00005d10| 69 66 20 28 21 62 46 69 | 6e 61 6c 43 6f 72 65 29 |if (!bFi|nalCore)|
|00005d20| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 44 65 |.. | De|
|00005d30| 66 65 6e 64 65 72 54 65 | 61 6d 49 6e 64 65 78 20 |fenderTe|amIndex |
|00005d40| 3d 20 64 65 66 61 75 6c | 74 2e 44 65 66 65 6e 64 |= defaul|t.Defend|
|00005d50| 65 72 54 65 61 6d 49 6e | 64 65 78 3b 0d 0a 0d 0a |erTeamIn|dex;....|
|00005d60| 09 09 69 66 20 28 20 62 | 53 63 72 69 70 74 49 6e |..if ( b|ScriptIn|
|00005d70| 69 74 69 61 6c 69 7a 65 | 64 20 29 0d 0a 09 09 09 |itialize|d ).....|
|00005d80| 53 65 74 49 6e 69 74 69 | 61 6c 53 74 61 74 65 28 |SetIniti|alState(|
|00005d90| 29 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 55 70 64 61 74 |);...}..|...Updat|
|00005da0| 65 4c 69 6e 6b 53 74 61 | 74 65 28 53 65 6c 66 29 |eLinkSta|te(Self)|
|00005db0| 3b 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |;..}....|simulate|
|00005dc0| 64 20 66 75 6e 63 74 69 | 6f 6e 20 55 70 64 61 74 |d functi|on Updat|
|00005dd0| 65 54 65 61 6d 42 61 6e | 6e 65 72 73 28 29 0d 0a |eTeamBan|ners()..|
|00005de0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 69 3b |{...loca|l int i;|
|00005df0| 0d 0a 0d 0a 09 66 6f 72 | 20 28 69 20 3d 20 30 3b |.....for| (i = 0;|
|00005e00| 20 69 20 3c 20 43 6c 6f | 73 65 41 63 74 6f 72 73 | i < Clo|seActors|
|00005e10| 2e 6c 65 6e 67 74 68 3b | 20 69 2b 2b 29 0d 0a 20 |.length;| i++).. |
|00005e20| 20 20 20 20 20 20 20 09 | 69 66 20 28 78 54 65 61 | .|if (xTea|
|00005e30| 6d 42 61 6e 6e 65 72 28 | 43 6c 6f 73 65 41 63 74 |mBanner(|CloseAct|
|00005e40| 6f 72 73 5b 69 5d 29 20 | 21 3d 20 4e 6f 6e 65 29 |ors[i]) |!= None)|
|00005e50| 0d 0a 20 20 20 20 20 20 | 20 20 09 7b 0d 0a 20 20 |.. | .{.. |
|00005e60| 20 20 20 20 20 20 09 09 | 69 66 20 28 43 6f 72 65 | ..|if (Core|
|00005e70| 53 74 61 67 65 20 3d 3d | 20 30 29 0d 0a 09 20 20 |Stage ==| 0)... |
|00005e80| 20 20 20 20 20 20 09 09 | 78 54 65 61 6d 42 61 6e | ..|xTeamBan|
|00005e90| 6e 65 72 28 43 6c 6f 73 | 65 41 63 74 6f 72 73 5b |ner(Clos|eActors[|
|00005ea0| 69 5d 29 2e 54 65 61 6d | 20 3d 20 44 65 66 65 6e |i]).Team| = Defen|
|00005eb0| 64 65 72 54 65 61 6d 49 | 6e 64 65 78 3b 0d 0a 09 |derTeamI|ndex;...|
|00005ec0| 20 20 20 20 20 20 20 20 | 09 65 6c 73 65 0d 0a 09 | |.else...|
|00005ed0| 20 20 20 20 20 20 20 20 | 09 09 78 54 65 61 6d 42 | |..xTeamB|
|00005ee0| 61 6e 6e 65 72 28 43 6c | 6f 73 65 41 63 74 6f 72 |anner(Cl|oseActor|
|00005ef0| 73 5b 69 5d 29 2e 54 65 | 61 6d 20 3d 20 32 35 35 |s[i]).Te|am = 255|
|00005f00| 3b 0d 0a 20 20 20 20 20 | 20 20 20 09 09 78 54 65 |;.. | ..xTe|
|00005f10| 61 6d 42 61 6e 6e 65 72 | 28 43 6c 6f 73 65 41 63 |amBanner|(CloseAc|
|00005f20| 74 6f 72 73 5b 69 5d 29 | 2e 55 70 64 61 74 65 46 |tors[i])|.UpdateF|
|00005f30| 6f 72 54 65 61 6d 28 29 | 3b 0d 0a 20 20 20 20 20 |orTeam()|;.. |
|00005f40| 20 20 20 09 7d 0d 0a 20 | 20 20 20 20 20 20 20 66 | .}.. | f|
|00005f50| 6f 72 20 28 69 20 3d 20 | 30 3b 20 69 20 3c 20 54 |or (i = |0; i < T|
|00005f60| 65 6c 65 70 6f 72 74 50 | 61 64 73 2e 6c 65 6e 67 |eleportP|ads.leng|
|00005f70| 74 68 3b 20 69 2b 2b 29 | 0d 0a 09 7b 0d 0a 20 20 |th; i++)|...{.. |
|00005f80| 20 20 20 20 20 20 09 69 | 66 20 28 43 6f 72 65 53 | .i|f (CoreS|
|00005f90| 74 61 67 65 20 3d 3d 20 | 30 29 0d 0a 20 20 20 20 |tage == |0).. |
|00005fa0| 20 20 20 20 09 09 54 65 | 6c 65 70 6f 72 74 50 61 | ..Te|leportPa|
|00005fb0| 64 73 5b 69 5d 2e 53 65 | 74 54 65 61 6d 28 44 65 |ds[i].Se|tTeam(De|
|00005fc0| 66 65 6e 64 65 72 54 65 | 61 6d 49 6e 64 65 78 29 |fenderTe|amIndex)|
|00005fd0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 09 65 6c 73 65 |;.. | .else|
|00005fe0| 0d 0a 20 20 20 20 20 20 | 20 20 09 09 54 65 6c 65 |.. | ..Tele|
|00005ff0| 70 6f 72 74 50 61 64 73 | 5b 69 5d 2e 53 65 74 54 |portPads|[i].SetT|
|00006000| 65 61 6d 28 32 35 35 29 | 3b 0d 0a 20 20 20 20 20 |eam(255)|;.. |
|00006010| 20 20 20 7d 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 | }..}.|...funct|
|00006020| 69 6f 6e 20 66 6c 6f 61 | 74 20 54 65 6c 65 70 6f |ion floa|t Telepo|
|00006030| 72 74 52 61 74 69 6e 67 | 28 43 6f 6e 74 72 6f 6c |rtRating|(Control|
|00006040| 6c 65 72 20 41 73 6b 65 | 72 2c 20 62 79 74 65 20 |ler Aske|r, byte |
|00006050| 41 73 6b 65 72 54 65 61 | 6d 2c 20 62 79 74 65 20 |AskerTea|m, byte |
|00006060| 53 6f 75 72 63 65 44 69 | 73 74 29 0d 0a 7b 0d 0a |SourceDi|st)..{..|
|00006070| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 09 |.local i|nt i;...|
|00006080| 6c 6f 63 61 6c 20 4f 4e | 53 56 65 68 69 63 6c 65 |local ON|SVehicle|
|00006090| 46 61 63 74 6f 72 79 20 | 46 3b 0d 0a 09 6c 6f 63 |Factory |F;...loc|
|000060a0| 61 6c 20 42 6f 74 20 42 | 3b 0d 0a 09 6c 6f 63 61 |al Bot B|;...loca|
|000060b0| 6c 20 66 6c 6f 61 74 20 | 52 61 74 69 6e 67 3b 0d |l float |Rating;.|
|000060c0| 0a 0d 0a 09 42 20 3d 20 | 42 6f 74 28 41 73 6b 65 |....B = |Bot(Aske|
|000060d0| 72 29 3b 0d 0a 0d 0a 09 | 66 6f 72 20 28 69 20 3d |r);.....|for (i =|
|000060e0| 20 30 3b 20 69 20 3c 20 | 43 6c 6f 73 65 41 63 74 | 0; i < |CloseAct|
|000060f0| 6f 72 73 2e 6c 65 6e 67 | 74 68 3b 20 69 2b 2b 29 |ors.leng|th; i++)|
|00006100| 0d 0a 09 7b 0d 0a 09 09 | 46 20 3d 20 4f 4e 53 56 |...{....|F = ONSV|
|00006110| 65 68 69 63 6c 65 46 61 | 63 74 6f 72 79 28 43 6c |ehicleFa|ctory(Cl|
|00006120| 6f 73 65 41 63 74 6f 72 | 73 5b 69 5d 29 3b 0d 0a |oseActor|s[i]);..|
|00006130| 09 09 69 66 20 28 46 20 | 21 3d 20 4e 6f 6e 65 20 |..if (F |!= None |
|00006140| 26 26 20 46 2e 4c 61 73 | 74 53 70 61 77 6e 65 64 |&& F.Las|tSpawned|
|00006150| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 46 2e 4c 61 | != None| && F.La|
|00006160| 73 74 53 70 61 77 6e 65 | 64 2e 62 54 65 61 6d 4c |stSpawne|d.bTeamL|
|00006170| 6f 63 6b 65 64 20 26 26 | 20 21 46 2e 4c 61 73 74 |ocked &&| !F.Last|
|00006180| 53 70 61 77 6e 65 64 2e | 53 70 6f 6b 65 6e 46 6f |Spawned.|SpokenFo|
|00006190| 72 28 41 73 6b 65 72 29 | 29 0d 0a 09 09 7b 0d 0a |r(Asker)|)....{..|
|000061a0| 09 09 09 69 66 20 28 42 | 20 3d 3d 20 4e 6f 6e 65 |...if (B| == None|
|000061b0| 29 0d 0a 09 09 09 09 52 | 61 74 69 6e 67 20 3d 20 |)......R|ating = |
|000061c0| 46 4d 61 78 28 52 61 74 | 69 6e 67 2c 20 46 2e 4c |FMax(Rat|ing, F.L|
|000061d0| 61 73 74 53 70 61 77 6e | 65 64 2e 4d 61 78 44 65 |astSpawn|ed.MaxDe|
|000061e0| 73 69 72 65 61 62 69 6c | 69 74 79 29 3b 0d 0a 09 |sireabil|ity);...|
|000061f0| 09 09 65 6c 73 65 0d 0a | 09 09 09 09 52 61 74 69 |..else..|....Rati|
|00006200| 6e 67 20 3d 20 46 4d 61 | 78 28 52 61 74 69 6e 67 |ng = FMa|x(Rating|
|00006210| 2c 20 42 2e 53 71 75 61 | 64 2e 56 65 68 69 63 6c |, B.Squa|d.Vehicl|
|00006220| 65 44 65 73 69 72 65 61 | 62 69 6c 69 74 79 28 46 |eDesirea|bility(F|
|00006230| 2e 4c 61 73 74 53 70 61 | 77 6e 65 64 2c 20 42 29 |.LastSpa|wned, B)|
|00006240| 29 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |);....}.|..}.....|
|00006250| 72 65 74 75 72 6e 20 28 | 52 61 74 69 6e 67 20 2d |return (|Rating -|
|00006260| 20 28 46 69 6e 61 6c 43 | 6f 72 65 44 69 73 74 61 | (FinalC|oreDista|
|00006270| 6e 63 65 5b 41 62 73 28 | 31 20 2d 20 41 73 6b 65 |nce[Abs(|1 - Aske|
|00006280| 72 54 65 61 6d 29 5d 20 | 2d 20 53 6f 75 72 63 65 |rTeam)] |- Source|
|00006290| 44 69 73 74 29 20 2a 20 | 30 2e 31 29 3b 0d 0a 7d |Dist) * |0.1);..}|
|000062a0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|000062b0| 6c 20 48 61 73 55 73 65 | 66 75 6c 56 65 68 69 63 |l HasUse|fulVehic|
|000062c0| 6c 65 73 28 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 41 |les(Cont|roller A|
|000062d0| 73 6b 65 72 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |sker)..{|...local|
|000062e0| 20 69 6e 74 20 69 3b 0d | 0a 09 6c 6f 63 61 6c 20 | int i;.|..local |
|000062f0| 4f 4e 53 56 65 68 69 63 | 6c 65 46 61 63 74 6f 72 |ONSVehic|leFactor|
|00006300| 79 20 46 3b 0d 0a 09 6c | 6f 63 61 6c 20 42 6f 74 |y F;...l|ocal Bot|
|00006310| 20 42 3b 0d 0a 0d 0a 09 | 42 20 3d 20 42 6f 74 28 | B;.....|B = Bot(|
|00006320| 41 73 6b 65 72 29 3b 0d | 0a 0d 0a 09 66 6f 72 20 |Asker);.|....for |
|00006330| 28 69 20 3d 20 30 3b 20 | 69 20 3c 20 43 6c 6f 73 |(i = 0; |i < Clos|
|00006340| 65 41 63 74 6f 72 73 2e | 6c 65 6e 67 74 68 3b 20 |eActors.|length; |
|00006350| 69 2b 2b 29 0d 0a 09 7b | 0d 0a 09 09 46 20 3d 20 |i++)...{|....F = |
|00006360| 4f 4e 53 56 65 68 69 63 | 6c 65 46 61 63 74 6f 72 |ONSVehic|leFactor|
|00006370| 79 28 43 6c 6f 73 65 41 | 63 74 6f 72 73 5b 69 5d |y(CloseA|ctors[i]|
|00006380| 29 3b 0d 0a 09 09 69 66 | 20 28 20 46 20 21 3d 20 |);....if| ( F != |
|00006390| 4e 6f 6e 65 20 26 26 20 | 46 2e 4c 61 73 74 53 70 |None && |F.LastSp|
|000063a0| 61 77 6e 65 64 20 21 3d | 20 4e 6f 6e 65 20 26 26 |awned !=| None &&|
|000063b0| 20 46 2e 4c 61 73 74 53 | 70 61 77 6e 65 64 2e 62 | F.LastS|pawned.b|
|000063c0| 54 65 61 6d 4c 6f 63 6b | 65 64 0d 0a 09 09 20 20 |TeamLock|ed.... |
|000063d0| 20 20 20 26 26 20 28 42 | 20 3d 3d 20 4e 6f 6e 65 | && (B| == None|
|000063e0| 20 7c 7c 20 42 2e 53 71 | 75 61 64 2e 56 65 68 69 | || B.Sq|uad.Vehi|
|000063f0| 63 6c 65 44 65 73 69 72 | 65 61 62 69 6c 69 74 79 |cleDesir|eability|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.